summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-10-05 08:12:08 +0200
committerSebastien Helleu <flashcode@flashtux.org>2013-10-05 08:12:08 +0200
commit5a119bb0f1e37718cb211d2e341d9df49e65561d (patch)
tree6947c762b161189001a63dc71cdd92cf6d5bd123 /src
parent86008b8502923d3464b5853f5a63e5b34d20b426 (diff)
downloadweechat-5a119bb0f1e37718cb211d2e341d9df49e65561d.zip
irc: remove target of notice (self nick) in the display of channel welcome notice (fix highlight problem)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-protocol.c7
1 files 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);
}