]> code.citadel.org Git - citadel.git/blobdiff - webcit/autocompletion.c
Began replacing the FSF's street address with their
[citadel.git] / webcit / autocompletion.c
index 4d8b3799a81abc6f21f6685b7a2eb786aa9e9ac6..e1bf1ab979d90ba5a1ec1bad38aa3a10127135f7 100644 (file)
@@ -1,7 +1,20 @@
 /*
- * $Id$
- *
  * ajax-powered autocompletion...
+ *
+ * Copyright (c) 1996-2011 by the citadel.org team
+ *
+ * This program is open source software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 #include "webcit.h"
@@ -25,22 +38,22 @@ void recp_autocomplete(char *partial) {
                PACKAGE_STRING);
        begin_burst();
 
-       wprintf("<ul>");
+       wc_printf("<ul>");
 
        serv_printf("AUTO %s", partial);
        serv_getln(buf, sizeof buf);
        if (buf[0] == '1') {
                while(serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
                        extract_token(name, buf, 0, '|', sizeof name);
-                       wprintf("<li>");
+                       wc_printf("<li>");
                        escputs(name);
-                       wprintf("</li>");
+                       wc_printf("</li>");
                }
        }
 
-       wprintf("</ul>");
+       wc_printf("</ul>");
 
-       wprintf("\r\n\r\n");
+       wc_printf("\r\n\r\n");
        wDumpContent(0);
 }