#include <arpa/inet.h>
#include "citadel.h"
#include "server.h"
-#include "dynloader.h"
+#include "serv_extensions.h"
#include "sysdep_decls.h"
#include "citserver.h"
#include "config.h"
*/
void master_startup(void) {
struct timeval tv;
-
- time(&server_startup_time);
+ struct quickroom qrbuf;
lprintf(9, "master_startup() started\n");
+ time(&server_startup_time);
+
lprintf(7, "Opening databases\n");
open_databases();
create_room(SYSCONFIGROOM, 3, "", 0, 1, 0);
create_room(config.c_twitroom, 0, "", 0, 1, 0);
+ /* The "Local System Configuration" room doesn't need to be visible */
+ if (lgetroom(&qrbuf, SYSCONFIGROOM) == 0) {
+ qrbuf.QRflags2 |= QR2_SYSTEM;
+ lputroom(&qrbuf);
+ }
+
+
lprintf(7, "Seeding the pseudo-random number generator...\n");
gettimeofday(&tv, NULL);
srand(tv.tv_usec);
syslog(LOG_NOTICE,"session %d: ended", con->cs_pid);
- /* If we have a message in cache, free it */
- if (CC->cached_msg != NULL) {
- phree(CC->cached_msg);
- }
-
/* Deallocate any user-data attached to this session */
deallocate_user_data(con);
cmd_lzrm(&cmdbuf[5]);
}
+ else if (!strncasecmp(cmdbuf,"LPRM",4)) {
+ cmd_lprm(&cmdbuf[5]);
+ }
+
else if (!strncasecmp(cmdbuf,"GETU",4)) {
cmd_getu();
}
cmd_view(&cmdbuf[5]);
}
+ else if (!strncasecmp(cmdbuf, "ISME", 4)) {
+ cmd_isme(&cmdbuf[5]);
+ }
+
#ifdef DEBUG_MEMORY_LEAKS
else if (!strncasecmp(cmdbuf, "LEAK", 4)) {
dump_tracked();