aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2016-04-22 07:14:15 -0700
committerRyan Huber <rhuber@gmail.com>2016-04-22 07:14:15 -0700
commit8f0c335f7aeaa1aa0d64a193d0858702faa49408 (patch)
tree86f035a59d407fa10fa332ff38b59e1a9809db58
parentfe16a7127f1c70ac11c8851c2e69ce0f23b2ed8e (diff)
parent67e0ccf161530faeb51da346dcc01c05340b375f (diff)
downloadwee-slack-8f0c335f7aeaa1aa0d64a193d0858702faa49408.tar.gz
Merge pull request #185 from gilbertw1/color-same-prefix
Coloring 'prefix_same_nick' prefix the same as the preceding username…
-rw-r--r--wee_slack.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 69ea7a7..dfa2315 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -635,7 +635,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'))