]> jfr.im git - irc/weechat/weechat.git/commitdiff
irc: fix title of private buffers wrongly set to own address when capability echo...
authorSébastien Helleu <redacted>
Thu, 14 Sep 2023 06:04:44 +0000 (08:04 +0200)
committerSébastien Helleu <redacted>
Thu, 14 Sep 2023 06:04:44 +0000 (08:04 +0200)
ChangeLog.adoc
src/plugins/irc/irc-protocol.c

index 0d18a5a6402c61036f2c3a0b82f8967d38c3615f..3c19a2144dc475a857521b93255add7de495bb54 100644 (file)
@@ -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)
index 44b2e95a92244d084b45abb828088426db216403..5ebdbf375f265930f8cd54990adef2b3f75ce633 100644 (file)
@@ -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);