]> code.citadel.org Git - citadel.git/blobdiff - citadel/routines2.c
* Changed the comments at the beginning of each file to a consistent format
[citadel.git] / citadel / routines2.c
index d4e07c9292291e75c1eb6eb69ff50c53bb732e7f..224a316317f455579fd0d7313d119a657378292e 100644 (file)
@@ -1,6 +1,8 @@
-/* More Citadel/UX routines...
- * unlike routines.c, some of these DO use global variables.
- * $Id$
+/* $Id$
+ *
+ * More client-side support functions.
+ * Unlike routines.c, some of these DO use global variables.
+ *
  */
 
 #include "sysdep.h"
@@ -575,18 +577,18 @@ void list_bio(void)
        serv_puts("LBIO");
        serv_gets(buf);
        if (buf[0] != '1') {
-               printf("%s\n", &buf[4]);
+               pprintf("%s\n", &buf[4]);
                return;
        }
        while (serv_gets(buf), strcmp(buf, "000")) {
                if ((pos + strlen(buf) + 5) > screenwidth) {
-                       printf("\n");
+                       pprintf("\n");
                        pos = 1;
                }
-               printf("%s, ", buf);
+               pprintf("%s, ", buf);
                pos = pos + strlen(buf) + 2;
        }
-       printf("%c%c  \n\n", 8, 8);
+       pprintf("%c%c  \n\n", 8, 8);
 }
 
 
@@ -600,7 +602,7 @@ void read_bio(void)
 
        do {
                newprompt("Read bio for who ('?' for list) : ", who, 25);
-               printf("\n");
+               pprintf("\n");
                if (!strcmp(who, "?"))
                        list_bio();
        } while (!strcmp(who, "?"));
@@ -608,11 +610,11 @@ void read_bio(void)
        serv_puts(buf);
        serv_gets(buf);
        if (buf[0] != '1') {
-               printf("%s\n", &buf[4]);
+               pprintf("%s\n", &buf[4]);
                return;
        }
        while (serv_gets(buf), strcmp(buf, "000")) {
-               printf("%s\n", buf);
+               pprintf("%s\n", buf);
        }
 }
 
@@ -623,7 +625,7 @@ void read_bio(void)
 void do_system_configuration(void)
 {
        char buf[256];
-       char sc[25][256];
+       char sc[26][256];
        int expire_mode = 0;
        int expire_value = 0;
        int a;
@@ -637,7 +639,7 @@ void do_system_configuration(void)
        if (buf[0] == '1') {
                a = 0;
                while (serv_gets(buf), strcmp(buf, "000")) {
-                       if (a < 25)
+                       if (a < 26)
                                strcpy(&sc[a][0], buf);
                        ++a;
                }
@@ -662,7 +664,7 @@ void do_system_configuration(void)
        strprompt("Geographic location of this system", &sc[12][0], 31);
        strprompt("Name of system administrator", &sc[13][0], 25);
        strprompt("Paginator prompt", &sc[10][0], 79);
-
+       strprompt("Default moderation filter for new users", &sc[25][0], 4);
 
        /* Security parameters */
 
@@ -700,7 +702,6 @@ void do_system_configuration(void)
 
 
        /* Expiry settings */
-
        strprompt("Default user purge time (days)", &sc[16][0], 5);
        strprompt("Default room purge time (days)", &sc[17][0], 5);
 
@@ -735,7 +736,7 @@ void do_system_configuration(void)
                serv_puts("CONF set");
                serv_gets(buf);
                if (buf[0] == '4') {
-                       for (a = 0; a < 25; ++a)
+                       for (a = 0; a < 26; ++a)
                                serv_puts(&sc[a][0]);
                        serv_puts("000");
                }