1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +02:00

irc: disable server reconnection when the server buffer is closed (closes #236)

This commit is contained in:
Sébastien Helleu
2019-06-15 22:46:14 +02:00
parent 0d9b7ec954
commit 60c61c3962
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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)