Here it is, the new thread interface.
[citadel.git] / citadel / modules / mrtg / serv_mrtg.c
index dab0ab7b809ad90f33eaba51e503b37d08d85af6..dc3adfc3090ab02fa057c8635b52238ac81a942c 100644 (file)
@@ -130,8 +130,11 @@ void cmd_mrtg(char *argbuf) {
 
 CTDL_MODULE_INIT(mrtg)
 {
-        CtdlRegisterProtoHook(cmd_mrtg, "MRTG", "Supply stats to MRTG");
-
+       if (!threading)
+       {
+               CtdlRegisterProtoHook(cmd_mrtg, "MRTG", "Supply stats to MRTG");
+       }
+       
        /* return our Subversion id for the Log */
         return "$Id$";
 }