/*
* $Id$
*
- * This module implementsserver commands related to the display and
+ * This module implements server commands related to the display and
* manipulation of the "Who's online" list.
*
*/
#include <sys/wait.h>
#include <string.h>
#include <limits.h>
+#include <libcitadel.h>
#include "citadel.h"
#include "server.h"
#include "citserver.h"
#include "policy.h"
#include "database.h"
#include "msgbase.h"
-#include "tools.h"
#include "ctdl_module.h"
*/
PerformSessionHooks(EVT_RWHO);
cprintf("000\n");
- }
+}
/*
if (requested_mode == 1) {
CC->cs_flags = CC->cs_flags | CS_STEALTH;
+ PerformSessionHooks(EVT_STEALTH);
}
if (requested_mode == 0) {
CC->cs_flags = CC->cs_flags & ~CS_STEALTH;
+ PerformSessionHooks(EVT_UNSTEALTH);
}
cprintf("%d %d\n", CIT_OK,
}
-
-
-
-
-
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$";
}