summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-protocol.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-09-14 08:04:44 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-09-14 08:04:44 +0200
commit4e173c19725ac825c9efa3e763018e2494a89e19 (patch)
treec8e6f55dda9feb7dc060e6406dba44048ce4c25b /src/plugins/irc/irc-protocol.c
parentef99d544fa8b968358724db6926b78bc8eed5341 (diff)
downloadweechat-4e173c19725ac825c9efa3e763018e2494a89e19.zip
irc: fix title of private buffers wrongly set to own address when capability echo-message is enabled (issue #2016)
Diffstat (limited to 'src/plugins/irc/irc-protocol.c')
-rw-r--r--src/plugins/irc/irc-protocol.c3
1 files changed, 1 insertions, 2 deletions
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);