Here it is, the new thread interface.
[citadel.git] / citadel / modules / rwho / serv_rwho.c
index 1c9f7a7a48e9fb59db3974287d2a14535fcf9484..16746dfe9f00d082a784c3504817f1ad28e9b3ff 100644 (file)
@@ -255,12 +255,15 @@ void cmd_stel(char *cmdbuf)
 
 CTDL_MODULE_INIT(rwho)
 {
-        CtdlRegisterProtoHook(cmd_rwho, "RWHO", "Display who is online");
-        CtdlRegisterProtoHook(cmd_hchg, "HCHG", "Masquerade hostname");
-        CtdlRegisterProtoHook(cmd_rchg, "RCHG", "Masquerade roomname");
-        CtdlRegisterProtoHook(cmd_uchg, "UCHG", "Masquerade username");
-        CtdlRegisterProtoHook(cmd_stel, "STEL", "Enter/exit stealth mode");
-
+       if(!threading)
+       {
+               CtdlRegisterProtoHook(cmd_rwho, "RWHO", "Display who is online");
+               CtdlRegisterProtoHook(cmd_hchg, "HCHG", "Masquerade hostname");
+               CtdlRegisterProtoHook(cmd_rchg, "RCHG", "Masquerade roomname");
+               CtdlRegisterProtoHook(cmd_uchg, "UCHG", "Masquerade username");
+               CtdlRegisterProtoHook(cmd_stel, "STEL", "Enter/exit stealth mode");
+       }
+       
        /* return our Subversion id for the Log */
         return "$Id$";
 }