Here it is, the new thread interface.
[citadel.git] / citadel / modules / pas2 / serv_pas2.c
index 7df51d60dfcd19786d91a53e871b85b59a0f1c98..63bd213ae17d3ff3c12fdfc78985cfd7bc67d207 100644 (file)
@@ -88,8 +88,11 @@ void cmd_pas2(char *argbuf)
 
 CTDL_MODULE_INIT(pas2)
 {
-        CtdlRegisterProtoHook(cmd_pas2, "PAS2", "APOP-based login");
-
+       if (!threading)
+       {
+               CtdlRegisterProtoHook(cmd_pas2, "PAS2", "APOP-based login");
+       }
+       
        /* return our Subversion id for the Log */
         return "$Id$";
 }