summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-04-21 23:24:05 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-04-21 23:24:05 +0200
commit87d29b19871ef7b967a1a818eae338ed29faade9 (patch)
treee09c172f2502145d787adec47451bb5b143c01ef /src/plugins/irc/irc-command.c
parent9cbcc24d4c19c6a37b0f0c7948955ec4f0cd73be (diff)
downloadweechat-87d29b19871ef7b967a1a818eae338ed29faade9.zip
Add new options irc.network.autoreconnect_delay_growing and irc.network.autoreconnect_delay_max (task #10338)
Diffstat (limited to 'src/plugins/irc/irc-command.c')
-rw-r--r--src/plugins/irc/irc-command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c
index f384f0c15..9316029d5 100644
--- a/src/plugins/irc/irc-command.c
+++ b/src/plugins/irc/irc-command.c
@@ -684,6 +684,7 @@ irc_command_connect_one_server (struct t_irc_server *server, int no_join)
server->disable_autojoin = no_join;
if (irc_server_connect (server))
{
+ server->reconnect_delay = 0;
server->reconnect_start = 0;
server->reconnect_join = (server->channels) ? 1 : 0;
}
@@ -2960,6 +2961,7 @@ irc_command_reconnect_one_server (struct t_irc_server *server, int no_join)
server->disable_autojoin = no_join;
if (irc_server_connect (server))
{
+ server->reconnect_delay = 0;
server->reconnect_start = 0;
server->reconnect_join = (server->channels) ? 1 : 0;
}