From 0c86e742c588cf38a93f2f89dea5f96c48e7d0f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 19 Aug 2017 11:24:36 +0200 Subject: irc: do not use away color for nicks in nicklist if option irc.look.color_nicks_in_nicklist is on --- src/plugins/irc/irc-nick.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/plugins/irc/irc-nick.c b/src/plugins/irc/irc-nick.c index de64fd4c5..909a1e663 100644 --- a/src/plugins/irc/irc-nick.c +++ b/src/plugins/irc/irc-nick.c @@ -317,9 +317,6 @@ irc_nick_get_color_for_nicklist (struct t_irc_server *server, static char *nick_color_self = "weechat.color.chat_nick_self"; static char *nick_color_away = "weechat.color.nicklist_away"; - if (nick->away) - return nick_color_away; - if (weechat_config_boolean(irc_config_look_color_nicks_in_nicklist)) { if (irc_server_strcasecmp (server, nick->name, server->nick) == 0) @@ -328,6 +325,9 @@ irc_nick_get_color_for_nicklist (struct t_irc_server *server, return irc_nick_find_color_name (nick->name); } + if (nick->away) + return nick_color_away; + return nick_color_bar_fg; } -- cgit v1.2.3