X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fautocompletion.c;h=9873a9906787a87ebf648e998be97d0c2f51b1cb;hb=f5c1330914acc193f96892efc191a32ee537dfb5;hp=4cf4ccd6f659ff139fe84df68da623d681c6282e;hpb=5685e790de93f77083ea240f474a4870b194c550;p=citadel.git diff --git a/webcit/autocompletion.c b/webcit/autocompletion.c index 4cf4ccd6f..9873a9906 100644 --- a/webcit/autocompletion.c +++ b/webcit/autocompletion.c @@ -1,7 +1,21 @@ /* - * $Id$ - * * ajax-powered autocompletion... + * + * Copyright (c) 1996-2010 by the citadel.org team + * + * This program is free 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, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "webcit.h" @@ -25,22 +39,22 @@ void recp_autocomplete(char *partial) { PACKAGE_STRING); begin_burst(); - wprintf(""); - wprintf("\r\n\r\n"); + wc_printf("\r\n\r\n"); wDumpContent(0); } @@ -54,7 +68,7 @@ void InitModule_AUTO_COMPLETE (void) { - WebcitAddUrlHandler(HKEY("recp_autocomplete"), _recp_autocomplete, 0); - WebcitAddUrlHandler(HKEY("cc_autocomplete"), _cc_autocomplete, 0); - WebcitAddUrlHandler(HKEY("bcc_autocomplete"), _bcc_autocomplete, 0); + WebcitAddUrlHandler(HKEY("recp_autocomplete"), "", 0, _recp_autocomplete, 0); + WebcitAddUrlHandler(HKEY("cc_autocomplete"), "", 0, _cc_autocomplete, 0); + WebcitAddUrlHandler(HKEY("bcc_autocomplete"), "", 0, _bcc_autocomplete, 0); }