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

irc: sent "QUIT" message to servers connected with TLS on /upgrade

This commit is contained in:
Sébastien Helleu
2023-06-26 22:06:46 +02:00
parent 929d6fd452
commit 9939f939aa
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -149,6 +149,8 @@ irc_signal_upgrade_cb (const void *pointer, void *data,
"work for servers connected via TLS"),
weechat_prefix ("error"), IRC_PLUGIN_NAME);
}
/* send QUIT to server, then disconnect */
irc_command_quit_server (ptr_server, NULL);
irc_server_disconnect (ptr_server, 0, 0);
/*
* schedule reconnection: WeeChat will reconnect to this server