]> code.citadel.org Git - citadel.git/blobdiff - citadel/citserver.c
* Removed the NETF command and the UI elements which call it. We haven't had the...
[citadel.git] / citadel / citserver.c
index 29150820afd2c7eb2c042c30cdbef9681a0c457e..a78e60113674b8eaac7003eb3418d2d331ab2954 100644 (file)
@@ -170,6 +170,7 @@ void master_startup(void) {
                gettimeofday(&tv, NULL);
                seed = tv.tv_usec;
        }
+       srand(seed);
        srandom(seed);
 
        CtdlLogPrintf(CTDL_INFO, "Initializing ipgm secret\n");
@@ -983,7 +984,7 @@ void begin_session(struct CitContext *con)
        con->dl_is_net = 0;
 
        con->nologin = 0;
-       if ((config.c_maxsessions > 0)&&(num_sessions > config.c_maxsessions)) {
+       if (((config.c_maxsessions > 0)&&(num_sessions > config.c_maxsessions)) || CtdlWantSingleUser()) {
                con->nologin = 1;
        }
 
@@ -1291,10 +1292,6 @@ void do_command_loop(void) {
                cmd_movf(&cmdbuf[5]);
        }
 
-       else if (!strncasecmp(cmdbuf,"NETF",4)) {
-               cmd_netf(&cmdbuf[5]);
-       }
-
        else if (!strncasecmp(cmdbuf,"OPEN",4)) {
                cmd_open(&cmdbuf[5]);
        }