From 5a119bb0f1e37718cb211d2e341d9df49e65561d Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 5 Oct 2013 08:12:08 +0200 Subject: [PATCH] irc: remove target of notice (self nick) in the display of channel welcome notice (fix highlight problem) --- src/plugins/irc/irc-protocol.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 1c96e31bd..306b88176 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -1171,7 +1171,7 @@ IRC_PROTOCOL_CALLBACK(notice) irc_protocol_tags (command, "notify_message", nick), - "%s%s%s%s%s(%s%s%s)%s -> %s%s%s: %s", + "%s%s%s%s%s(%s%s%s)%s%s%s%s%s: %s", weechat_prefix ("network"), IRC_COLOR_NOTICE, /* TRANSLATORS: "Notice" is command name in IRC protocol (translation is frequently the same word) */ @@ -1182,8 +1182,9 @@ IRC_PROTOCOL_CALLBACK(notice) (nick && nick[0]) ? nick : "?", IRC_COLOR_CHAT_DELIMITERS, IRC_COLOR_RESET, - (is_channel_orig) ? IRC_COLOR_CHAT_CHANNEL : irc_nick_color_for_message (server, NULL, pos_target), - pos_target, + (is_channel_orig) ? " -> " : "", + (is_channel_orig) ? IRC_COLOR_CHAT_CHANNEL : "", + (is_channel_orig) ? pos_target : "", IRC_COLOR_RESET, pos_args); }