From 67e0ccf161530faeb51da346dcc01c05340b375f Mon Sep 17 00:00:00 2001 From: Bryan Gilbert Date: Sun, 13 Mar 2016 10:43:59 -0400 Subject: Coloring 'prefix_same_nick' prefix the same as the preceding username it is replacing if 'colorize_nicks' is turned on. --- wee_slack.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wee_slack.py b/wee_slack.py index 4a1d000..cd37f59 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -631,7 +631,10 @@ class Channel(object): if self.channel_buffer: prefix_same_nick = w.config_string(w.config_get('weechat.look.prefix_same_nick')) if user == self.last_active_user and prefix_same_nick != "": - name = prefix_same_nick + if colorize_nicks and self.server.users.find(user): + name = self.server.users.find(user).color + prefix_same_nick + else: + name = prefix_same_nick else: nick_prefix = w.config_string(w.config_get('weechat.look.nick_prefix')) nick_suffix = w.config_string(w.config_get('weechat.look.nick_suffix')) -- cgit