diff options
author | Tollef Fog Heen <tfheen@err.no> | 2016-01-19 07:47:49 +0100 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2016-01-19 07:47:49 +0100 |
commit | 7e5d83156a635d1acc7b28f5595761292af7941d (patch) | |
tree | 5b6bef24658d1a7c988ad863b03c121391a2727b | |
parent | 24b5d143282f9d210b4aea8c9b18f3a65029dea1 (diff) | |
parent | 26bef397be6dca9c0c833d0ad4ef1f3616913df9 (diff) | |
download | wee-slack-7e5d83156a635d1acc7b28f5595761292af7941d.tar.gz |
Merge pull request #148 from rawdigits/nick-suffix-prefix
Respect weechat.look.nick_{suffix,prefix}
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index c8d24ee..bcebcbb 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -611,6 +611,9 @@ class Channel(object): if user == self.last_active_user and prefix_same_nick != "": 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')) + if self.server.users.find(user): name = self.server.users.find(user).formatted_name() self.last_active_user = user @@ -618,6 +621,7 @@ class Channel(object): else: name = user self.last_active_user = None + name = nick_prefix + name + nick_suffix name = name.decode('utf-8') #colorize nicks in each line chat_color = w.config_string(w.config_get('weechat.color.chat')) |