Don't register commands twice, only register them before threading begins.
[citadel.git] / citadel / control.c
index 2599815dc38b7b9951767a98eec486f684d8b18c..eef125c7266bf59e6bbfd97dac1a4eb8826f114d 100644 (file)
@@ -719,7 +719,9 @@ void cmd_conf(char *argbuf)
 
 CTDL_MODULE_INIT(control)
 {
-       CtdlRegisterProtoHook(cmd_conf, "CONF", "Autoconverted. TODO: document me.");
+       if (!threading) {
+               CtdlRegisterProtoHook(cmd_conf, "CONF", "Autoconverted. TODO: document me.");
+       }
        /* return our Subversion id for the Log */
        return "$Id$";
 }