]> code.citadel.org Git - citadel.git/commitdiff
* Changed the <.A>ide <S>ysconfig <G>eneral command to explicitly allow the
authorArt Cancro <ajc@citadel.org>
Tue, 3 Oct 2000 01:45:00 +0000 (01:45 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 3 Oct 2000 01:45:00 +0000 (01:45 +0000)
  global page log room to be disabled (answer "no" to set the log room to a
  null string)

citadel/ChangeLog
citadel/routines2.c

index 54465846c3c2803494b4a5d0249f98959829865a..e3d344b742af558771365732fb818cc4ba7b4f15 100644 (file)
@@ -1,4 +1,9 @@
  $Log$
+ Revision 573.5  2000/10/03 01:45:00  ajc
+ * Changed the <.A>ide <S>ysconfig <G>eneral command to explicitly allow the
+   global page log room to be disabled (answer "no" to set the log room to a
+   null string)
+
  Revision 573.4  2000/09/28 10:27:38  error
  * commands.c: changed sttybbs() to support HP/UX termios VMIN and VTIME
 
@@ -2067,4 +2072,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
 
-
index 224a316317f455579fd0d7313d119a657378292e..b8238f746676bc7c2665352a8ef16bedecf5b2b1 100644 (file)
@@ -629,6 +629,7 @@ void do_system_configuration(void)
        int expire_mode = 0;
        int expire_value = 0;
        int a;
+       int logpages = 0;
 
        /* Clear out the config buffers */
        memset(&sc[0][0], 0, sizeof(sc));
@@ -686,7 +687,15 @@ void do_system_configuration(void)
              "Restrict Internet mail to only those with that privilege",
                                                     atoi(&sc[11][0]))));
 
-       strprompt("Name of room to log pages", &sc[18][0], ROOMNAMELEN);
+       if (strlen(&sc[18][0]) > 0) logpages = 1;
+       else logpages = 0;
+       logpages = boolprompt("Log all pages", logpages);
+       if (logpages) {
+               strprompt("Name of logging room", &sc[18][0], ROOMNAMELEN);
+       }
+       else {
+               sc[18][0] = 0;
+       }
 
 
        /* Server tuning */