summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-06-15 22:46:14 +0200
committerSébastien Helleu <flashcode@flashtux.org>2019-06-15 22:46:14 +0200
commit60c61c39624457c193bc0c0e15124a809c7ddca7 (patch)
treed48d73b2177794a25e636b4bba2363db51765241 /src
parent0d9b7ec95499de6dd0ab981411416be6707b9f25 (diff)
downloadweechat-60c61c39624457c193bc0c0e15124a809c7ddca7.zip
irc: disable server reconnection when the server buffer is closed (closes #236)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-buffer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-buffer.c b/src/plugins/irc/irc-buffer.c
index a49b5b4a9..150004d9e 100644
--- a/src/plugins/irc/irc-buffer.c
+++ b/src/plugins/irc/irc-buffer.c
@@ -188,6 +188,10 @@ irc_buffer_close_cb (const void *pointer, void *data,
irc_server_disconnect (ptr_server, 0, 0);
}
+ /* disable reconnection */
+ ptr_server->reconnect_delay = 0;
+ ptr_server->reconnect_start = 0;
+
/* close server channels/privates */
ptr_channel = ptr_server->channels;
while (ptr_channel)