From 9939f939aae61988565331e2fc0f4b1ed018b167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 26 Jun 2023 22:06:46 +0200 Subject: [PATCH] irc: sent "QUIT" message to servers connected with TLS on `/upgrade` --- ChangeLog.adoc | 1 + src/plugins/irc/irc.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index b92ab3f93..a0a1f728b 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -18,6 +18,7 @@ Bug fixes:: * core: force key "return" to command "/input return" when migrating legacy keys * core: display actual key name and command with key kbd:[Alt+k], remove key kbd:[Alt+K] (grab raw key) and associated commands `/input grab_raw_key` and `/input grab_raw_key_command` * irc: reply to a CTCP request sent to self nick (issue #1966) + * irc: sent "QUIT" message to servers connected with TLS on `/upgrade` [[v4.0.0]] == Version 4.0.0 (2023-06-24) 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