1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 06:46:38 +02:00

irc: fix display of outgoing notice with channel when capability "echo-message" is enabled (closes #1991)

This commit is contained in:
Sébastien Helleu
2023-08-01 22:35:21 +02:00
parent b0549e4d09
commit 03daae3059
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -42,6 +42,7 @@ Bug fixes::
* 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: add channel in "autojoin" server option only when the channel is actually joined (issue #1990)
* irc: fix display of outgoing notice with channel when capability "echo-message" is enabled (issue #1991)
* script: fix cursor position after `/script list -i` or `/script list -il`
* script: fix buffer used by command `/script list -i|-il|-o|-ol`
+4 -1
View File
@@ -2537,8 +2537,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])