Here it is, the new thread interface.
[citadel.git] / citadel / modules / vandelay / serv_vandelay.c
index 576089f3ccd9492fb2bacd760cf80e3505411813..2464d9e3976e6c4d5bbc56fcf80fd98aec7b4213 100644 (file)
@@ -806,8 +806,11 @@ void cmd_artv(char *cmdbuf) {
 
 CTDL_MODULE_INIT(vandelay)
 {
-       CtdlRegisterProtoHook(cmd_artv, "ARTV", "import/export data store");
-
+       if (!threading)
+       {
+               CtdlRegisterProtoHook(cmd_artv, "ARTV", "import/export data store");
+       }
+       
        /* return our Subversion id for the Log */
        return "$Id$";
 }