From 352217c4444c8136de8b3df6a4ffe2ae6e90f12d Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 28 Nov 2009 10:32:55 +0100 Subject: Fix color of nick in nicklist when doing /nick if away is enabled (bug #28102) --- src/plugins/irc/irc-nick.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/irc/irc-nick.c b/src/plugins/irc/irc-nick.c index 1a0519b07..638e15a0b 100644 --- a/src/plugins/irc/irc-nick.c +++ b/src/plugins/irc/irc-nick.c @@ -322,7 +322,9 @@ irc_nick_change (struct t_irc_server *server, struct t_irc_channel *channel, "weechat.color.nicklist_prefix%d", prefix_color); weechat_nicklist_add_nick (channel->buffer, ptr_group, - nick->name, "bar_fg", + nick->name, + (nick->flags & IRC_NICK_AWAY) ? + "weechat.color.nicklist_away" : "bar_fg", prefix, str_prefix_color, 1); } -- cgit v1.2.3