Here it is, the new thread interface.
[citadel.git] / citadel / modules / autocompletion / serv_autocompletion.c
index 02f09969c8ec916b856df617d82ac66ea0c5cf14..9faebfe9d2d3ae1bb76dbf0095ee7996fd4150c7 100644 (file)
@@ -249,8 +249,10 @@ void cmd_auto(char *argbuf) {
 
 
 CTDL_MODULE_INIT(autocompletion) {
-       CtdlRegisterProtoHook(cmd_auto, "AUTO", "Do recipient autocompletion");
-
+       if (!threading)
+       {
+               CtdlRegisterProtoHook(cmd_auto, "AUTO", "Do recipient autocompletion");
+       }
        /* return our Subversion id for the Log */
        return "$Id$";
 }