#include <limits.h>
#include "citadel.h"
#include "server.h"
-#include "dynloader.h"
+#include "serv_extensions.h"
#include <syslog.h>
#include "serv_chat.h"
#include "sysdep_decls.h"
/* Save a copy of the message in the sender's log room,
* creating the room if necessary.
*/
- create_room(PAGELOGROOM, 4, "", 0, 1);
+ create_room(PAGELOGROOM, 4, "", 0, 1, 0);
msgnum = CtdlSubmitMsg(logmsg, NULL, PAGELOGROOM);
/* Now save a copy in the global log room, if configured */
if (strlen(config.c_logpages) > 0) {
- create_room(config.c_logpages, 3, "", 0, 1);
+ create_room(config.c_logpages, 3, "", 0, 1, 1);
CtdlSaveMsgPointerInRoom(config.c_logpages, msgnum, 0);
}
* but we've already supplied the namespace prefix.
*/
while (sl != NULL) {
- create_room(sl->roomname, 5, "", 0, 1);
+ create_room(sl->roomname, 5, "", 0, 1, 1);
CtdlSaveMsgPointerInRoom(sl->roomname, msgnum, 0);
sptr = sl->next;
phree(sl);
if (message_sent > 0) {
if (strlen(x_msg) > 0)
- cprintf("%d Message sent", OK);
+ cprintf("%d Message sent", CIT_OK);
else
- cprintf("%d Ok to send message", OK);
+ cprintf("%d Ok to send message", CIT_OK);
if (message_sent > 1)
cprintf(" to %d users", message_sent);
cprintf(".\n");
{
int new_state;
- if (!CC->logged_in) {
- cprintf("%d Not logged in.\n",ERROR+NOT_LOGGED_IN);
- return;
- }
+ if (CtdlAccessCheck(ac_logged_in)) return;
new_state = extract_int(argbuf, 0);
if ((new_state == 0) || (new_state == 1)) {
CC->disable_exp = new_state;
- }
- cprintf("%d %d\n", OK, CC->disable_exp);
}
+ cprintf("%d %d\n", CIT_OK, CC->disable_exp);
+}
+
/*
* Request client termination
}
}
end_critical_section(S_SESSION_TABLE);
- cprintf("%d Sent termination request to %d sessions.\n", OK, sessions);
+ cprintf("%d Sent termination request to %d sessions.\n", CIT_OK, sessions);
}
-char *Dynamic_Module_Init(void)
+char *serv_inithat_init(void)
{
CtdlRegisterProtoHook(cmd_chat, "CHAT", "Begin real-time chat");
CtdlRegisterProtoHook(cmd_pexp, "PEXP", "Poll for express messages");