diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-11-28 10:32:55 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-11-28 10:32:55 +0100 |
commit | 352217c4444c8136de8b3df6a4ffe2ae6e90f12d (patch) | |
tree | 25ede9e5966ef11d6736ca6d1678a60e3505665e /src/plugins/irc/irc-nick.c | |
parent | 138755d76e64287f3c2be3565df6ce08267b1f60 (diff) | |
download | weechat-352217c4444c8136de8b3df6a4ffe2ae6e90f12d.zip |
Fix color of nick in nicklist when doing /nick if away is enabled (bug #28102)
Diffstat (limited to 'src/plugins/irc/irc-nick.c')
-rw-r--r-- | src/plugins/irc/irc-nick.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |