diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-06-26 22:06:46 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-06-26 22:06:46 +0200 |
commit | b4da825f60cbf462bc63b44e344638b2813fd231 (patch) | |
tree | 7d63b837f673a1307d0e24d3f76f2051cd048a00 /src/plugins | |
parent | ca35b67307f225496fe43c86f12e9694a8065dd0 (diff) | |
download | weechat-b4da825f60cbf462bc63b44e344638b2813fd231.zip |
irc: sent "QUIT" message to servers connected with TLS on `/upgrade`
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/irc/irc.c b/src/plugins/irc/irc.c index 3f7d7838a..bd03193c5 100644 --- a/src/plugins/irc/irc.c +++ b/src/plugins/irc/irc.c @@ -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 |