diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-02-10 22:12:23 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-02-10 22:12:23 +0100 |
commit | 2e72679363832553172d3ea546aace64cd4f6881 (patch) | |
tree | 436f6ba81296f6f760dceb3dc58fc8a0c96db718 /src/plugins | |
parent | 124634cf88481033370f51908fd1f310c1a90590 (diff) | |
download | weechat-2e72679363832553172d3ea546aace64cd4f6881.zip |
Fix nick color in quit message displayed in IRC private buffer (when remote nick did not speak)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index fb20722ce..c3f705c97 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -1322,8 +1322,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"), - ((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), + (ptr_channel->type == IRC_CHANNEL_TYPE_PRIVATE) ? + irc_nick_color_for_pv (ptr_channel, nick) : IRC_COLOR_NICK_IN_SERVER_MESSAGE(ptr_nick), nick, IRC_COLOR_CHAT_DELIMITERS, IRC_COLOR_CHAT_HOST, @@ -1347,8 +1347,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"), - ((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), + (ptr_channel->type == IRC_CHANNEL_TYPE_PRIVATE) ? + irc_nick_color_for_pv (ptr_channel, nick) : IRC_COLOR_NICK_IN_SERVER_MESSAGE(ptr_nick), nick, IRC_COLOR_CHAT_DELIMITERS, IRC_COLOR_CHAT_HOST, |