From: Michael Hampton Date: Tue, 14 May 2002 01:15:54 +0000 (+0000) Subject: * Idle threshold on the who list is now customizable in the citadel.rc X-Git-Tag: v7.86~6402 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=301c18ececd151e662ce2e3f69f5617a6b19d0ba;p=citadel.git * Idle threshold on the who list is now customizable in the citadel.rc --- diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 3e7ad227f..3cb894715 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -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 Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/citadel.rc b/citadel/citadel.rc index 6721f8a5d..dac94e44c 100644 --- a/citadel/citadel.rc +++ b/citadel/citadel.rc @@ -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, diff --git a/citadel/commands.c b/citadel/commands.c index ade3f26d1..1c56ce588 100644 --- a/citadel/commands.c +++ b/citadel/commands.c @@ -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]); }