summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-12-29 09:44:32 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-12-29 09:44:32 +0100
commit5663e69bc578a7eeebf7ecc6d7da9abfc2ffeb2a (patch)
tree75fc549c8124ca0cbf344fa427385ed179b1db43
parentac0d9dfb781a580c1af92ef469c0ec9c604462c7 (diff)
downloadweechat-5663e69bc578a7eeebf7ecc6d7da9abfc2ffeb2a.zip
Fix nick color in quit message for IRC private buffers
-rw-r--r--src/plugins/irc/irc-protocol.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 087d03b02..aa562418f 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -1292,7 +1292,8 @@ irc_protocol_cmd_quit (struct t_irc_server *server, const char *command,
_("%s%s%s %s(%s%s%s)%s has quit "
"%s(%s%s%s)"),
weechat_prefix ("quit"),
- IRC_COLOR_NICK_IN_SERVER_MESSAGE(ptr_nick),
+ ((ptr_channel->type == IRC_CHANNEL_TYPE_PRIVATE) && (ptr_channel->pv_remote_nick_color)) ?
+ ptr_channel->pv_remote_nick_color : IRC_COLOR_NICK_IN_SERVER_MESSAGE(ptr_nick),
nick,
IRC_COLOR_CHAT_DELIMITERS,
IRC_COLOR_CHAT_HOST,
@@ -1314,7 +1315,8 @@ irc_protocol_cmd_quit (struct t_irc_server *server, const char *command,
NULL : "irc_smart_filter"),
_("%s%s%s %s(%s%s%s)%s has quit"),
weechat_prefix ("quit"),
- IRC_COLOR_NICK_IN_SERVER_MESSAGE(ptr_nick),
+ ((ptr_channel->type == IRC_CHANNEL_TYPE_PRIVATE) && (ptr_channel->pv_remote_nick_color)) ?
+ ptr_channel->pv_remote_nick_color : IRC_COLOR_NICK_IN_SERVER_MESSAGE(ptr_nick),
nick,
IRC_COLOR_CHAT_DELIMITERS,
IRC_COLOR_CHAT_HOST,