diff options
author | Bryan Gilbert <gilbertw1@gmail.com> | 2016-03-13 10:43:59 -0400 |
---|---|---|
committer | Bryan Gilbert <gilbertw1@gmail.com> | 2016-03-13 10:43:59 -0400 |
commit | 67e0ccf161530faeb51da346dcc01c05340b375f (patch) | |
tree | a6cde6af4f7e30a01816d0266826cad3666c7005 | |
parent | b1770652b856407f76095e5a513631c340d5f072 (diff) | |
download | wee-slack-67e0ccf161530faeb51da346dcc01c05340b375f.tar.gz |
Coloring 'prefix_same_nick' prefix the same as the preceding username it is replacing if 'colorize_nicks' is turned on.
-rw-r--r-- | wee_slack.py | 5 |
1 files changed, 4 insertions, 1 deletions
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')) |