]> jfr.im git - irc/weechat/weechat.git/commitdiff
irc: fix display of outgoing notice with channel when capability "echo-message" is...
authorSébastien Helleu <redacted>
Tue, 1 Aug 2023 20:35:21 +0000 (22:35 +0200)
committerSébastien Helleu <redacted>
Tue, 1 Aug 2023 20:37:10 +0000 (22:37 +0200)
ChangeLog.adoc
src/plugins/irc/irc-protocol.c

index 7d5cdb72b73410ca2efe21bc6920cab59394bb60..dfddf98fceb79e08a482c159cb5ac032520ae924 100644 (file)
@@ -19,6 +19,7 @@ Bug fixes::
   * irc: fix display of self CTCP message containing bold attribute (issue #1981)
   * irc: fix memory leak in IRC message parser
   * irc: fix switch to channel manually joined when server option autojoin_dynamic is on and option irc.look.buffer_switch_autojoin is off (issue #1982)
+  * irc: fix display of outgoing notice with channel when capability "echo-message" is enabled (issue #1991)
 
 Build::
 
index 34850ed369fd1690cc06c384ec1f3b2f7058b690..be4bcab35912b39c4840b3170d75cc1957c0d82b 100644 (file)
@@ -2505,8 +2505,11 @@ IRC_PROTOCOL_CALLBACK(notice)
         is_channel = irc_channel_is_channel (server, pos_target);
         is_channel_orig = is_channel;
         if (is_channel)
+        {
             channel = strdup (pos_target);
-        else if (weechat_config_boolean (irc_config_look_notice_welcome_redirect))
+        }
+        else if (weechat_config_boolean (irc_config_look_notice_welcome_redirect)
+                 && (irc_server_strcasecmp (server, server->nick, pos_target) == 0))
         {
             end_char = ' ';
             switch (pos_args[0])