summaryrefslogtreecommitdiff
path: root/src/common/weeconfig.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-01-23 02:14:37 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-01-23 02:14:37 +0000
commit9d0b6fad72c3381af5397ee3549f9987194892aa (patch)
treecf10b9098baff3beba4bc582944e7d8183efe42d /src/common/weeconfig.c
parent63d6ee1007d7038cbd4f86f41909cab67f5d0152 (diff)
downloadweechat-9d0b6fad72c3381af5397ee3549f9987194892aa.zip
Added lag indicator
Diffstat (limited to 'src/common/weeconfig.c')
-rw-r--r--src/common/weeconfig.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/common/weeconfig.c b/src/common/weeconfig.c
index 6875e8df9..df1aa67e6 100644
--- a/src/common/weeconfig.c
+++ b/src/common/weeconfig.c
@@ -460,6 +460,9 @@ int cfg_irc_display_away;
char *cfg_irc_default_msg_away;
char *cfg_irc_default_msg_part;
char *cfg_irc_default_msg_quit;
+int cfg_irc_lag_check;
+int cfg_irc_lag_min_show;
+int cfg_irc_lag_disconnect;
t_config_option weechat_options_irc[] =
{ { "irc_display_away", N_("display message to all channels when away"),
@@ -478,6 +481,18 @@ t_config_option weechat_options_irc[] =
N_("default quit message ('%v' will be replaced by WeeChat version in string)"),
OPTION_TYPE_STRING, 0, 0, 0,
"WeeChat %v", NULL, NULL, &cfg_irc_default_msg_quit, config_change_noop },
+ { "irc_lag_check", N_("interval between two checks for lag"),
+ N_("interval between two checks for lag (in seconds)"),
+ OPTION_TYPE_INT, 30, INT_MAX, 60,
+ NULL, NULL, &cfg_irc_lag_check, NULL, config_change_noop },
+ { "irc_lag_min_show", N_("minimum lag to show"),
+ N_("minimum lag to show (in seconds)"),
+ OPTION_TYPE_INT, 1, INT_MAX, 1,
+ NULL, NULL, &cfg_irc_lag_min_show, NULL, config_change_noop },
+ { "irc_lag_disconnect", N_("disconnect after important lag"),
+ N_("disconnect after important lag (in minutes, 0 = never disconnect)"),
+ OPTION_TYPE_INT, 0, INT_MAX, 5,
+ NULL, NULL, &cfg_irc_lag_disconnect, NULL, config_change_noop },
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL }
};