* Idle threshold on the who list is now customizable in the citadel.rc
authorMichael Hampton <io_error@uncensored.citadel.org>
Tue, 14 May 2002 01:15:54 +0000 (01:15 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Tue, 14 May 2002 01:15:54 +0000 (01:15 +0000)
citadel/ChangeLog
citadel/citadel.rc
citadel/commands.c

index 3e7ad227f378991f4dbfb1eff739572ed32d3fbe..3cb8947157a87e5a62fce6ab7cbe7986b89ea625 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 591.22  2002/05/14 01:15:54  error
+ * Idle threshold on the who list is now customizable in the citadel.rc
+
  Revision 591.21  2002/05/14 01:09:57  error
  * citadel.c: spacebar won't read New if there are no new messages
 
@@ -3645,3 +3648,4 @@ 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 6721f8a5d0ccc5e05ac1356ff4524d9f23c92a7d..dac94e44caf91cb1c8b296cb4a8e18236915f193 100644 (file)
@@ -87,6 +87,10 @@ beep=1
 #
 allow_attachments=0
 
+# IDLE_THRESHOLD is the amount of time a user does nothing before being
+# listed as "idle" on the who list.  The default is 900 seconds (15 minutes).
+#
+idle_threshold=900
 
 # If you set REMEMBER_PASSWORDS to 1, the Citadel client will offer to
 # remember your user name and password for every Citadel server you access,
index ade3f26d1c37ad88e3d96a236711118a3efb98d2..1c56ce58836c663d33298866ab9ed7d4e4d5d513 100644 (file)
@@ -76,6 +76,7 @@ int rc_remember_passwords;
 int rc_ansi_color;
 int num_urls = 0;
 int rc_prompt_control = 0;
+int rc_idle_threshold = 900;
 char urls[MAXURLS][SIZ];
 char rc_url_cmd[SIZ];
 
@@ -806,6 +807,9 @@ void load_command_set(void)
                if (!strncasecmp(buf, "allow_attachments=", 18)) {
                        rc_allow_attachments = atoi(&buf[18]);
                }
+               if (!strncasecmp(buf, "idle_threshold=", 14)) {
+                       rc_idle_threshold = atoi(&buf[14]);
+               }
                if (!strncasecmp(buf, "remember_passwords=", 19)) {
                        rc_remember_passwords = atoi(&buf[19]);
                }