Here it is, the new thread interface.
[citadel.git] / citadel / modules / listsub / serv_listsub.c
index 0eb2300f2247c241f327a0990d556ac7b28588f0..615bcc5b59685ed6ae7f9af456714d819b4d4b4e 100644 (file)
@@ -570,8 +570,11 @@ void cmd_subs(char *cmdbuf) {
  */
 CTDL_MODULE_INIT(listsub)
 {
-       CtdlRegisterProtoHook(cmd_subs, "SUBS", "List subscribe/unsubscribe");
-
+       if (!threading)
+       {
+               CtdlRegisterProtoHook(cmd_subs, "SUBS", "List subscribe/unsubscribe");
+       }
+       
        /* return our Subversion id for the Log */
        return "$Id$";
 }