From 4e173c19725ac825c9efa3e763018e2494a89e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 14 Sep 2023 08:04:44 +0200 Subject: [PATCH] irc: fix title of private buffers wrongly set to own address when capability echo-message is enabled (issue #2016) --- ChangeLog.adoc | 1 + src/plugins/irc/irc-protocol.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 0d18a5a64..3c19a2144 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -86,6 +86,7 @@ Bug fixes:: * core: fix integer overflow when setting integer option with `++N` or `--N` * core: fix increment/decrement of options weechat.notify.* + * irc: fix title of private buffers wrongly set to own address when capability echo-message is enabled (issue #2016) * irc: add missing tags on multiline messages (issue #1987) * irc: fix redirection of command `/list` when the reply doesn't start with message 321 (start of /list) * irc: fix wrong time displayed for CTCP messages received from self nick (issue #2000) diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 44b2e95a9..5ebdbf375 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -3286,8 +3286,6 @@ IRC_PROTOCOL_CALLBACK(privmsg) IRC_CHANNEL_TYPING_STATE_OFF); } - irc_channel_set_topic (ptr_channel, address); - if (nick_is_me) { str_color = irc_color_for_tags ( @@ -3296,6 +3294,7 @@ IRC_PROTOCOL_CALLBACK(privmsg) } else { + irc_channel_set_topic (ptr_channel, address); if (weechat_config_boolean (irc_config_look_color_pv_nick_like_channel)) { color = irc_nick_find_color_name (server, nick);