]> code.citadel.org Git - citadel.git/blobdiff - citadel/routines2.c
Implemented "access level required to create rooms" (client & server)
[citadel.git] / citadel / routines2.c
index f9eec92508652ba36eb73af94231e3ff56c2ea88..61e5f4d18b131f9e5f8040412f4b48e319c947df 100644 (file)
@@ -582,7 +582,7 @@ void read_bio(void) {
  */
 void do_system_configuration(void) {
        char buf[256];
-       char sc[19][256];
+       char sc[20][256];
        int expire_mode = 0;
        int expire_value = 0;
        int a;
@@ -596,7 +596,7 @@ void do_system_configuration(void) {
        if (buf[0] == '1') {
                a = 0;
                while (serv_gets(buf), strcmp(buf, "000")) {
-                       if (a<19) strcpy(&sc[a][0], buf);
+                       if (a<20) strcpy(&sc[a][0], buf);
                        ++a;
                        }
                }
@@ -622,6 +622,7 @@ void do_system_configuration(void) {
 
        strprompt("Server connection idle timeout (in seconds)", &sc[5][0], 4);
        strprompt("Initial access level for new users", &sc[6][0], 1);
+       strprompt("Access level required to create rooms", &sc[19][0], 1);
 
        sprintf(&sc[7][0], "%d", (boolprompt(
                "Require registration for new users",
@@ -679,7 +680,7 @@ void do_system_configuration(void) {
                serv_puts("CONF set");
                serv_gets(buf);
                if (buf[0] == '4') {
-                       for (a=0; a<19; ++a) serv_puts(&sc[a][0]);
+                       for (a=0; a<20; ++a) serv_puts(&sc[a][0]);
                        serv_puts("000");
                        }