diff options
author | Ryan Huber <rhuber@gmail.com> | 2015-02-23 14:38:19 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2015-02-23 14:38:19 -0800 |
commit | 0a3bb3a0bc30482d60d269f3830a5c687c43c4ab (patch) | |
tree | 601bae3d7b84f7a3ba77e8826c0c114e2b4029ac /wee_slack.py | |
parent | 761d0c653af2949d6af379c4627f71341f45fda8 (diff) | |
download | wee-slack-0a3bb3a0bc30482d60d269f3830a5c687c43c4ab.tar.gz |
bugfix introduced by name highlighting
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index aec1541..4494e5d 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -556,12 +556,12 @@ class Channel(SlackThing): name = name.decode('utf-8') #colorize nicks in each line chat_color = w.config_string(w.config_get('weechat.color.chat')) + message = message.decode('UTF-8', 'replace') for user in self.server.users: if user.name in message: message = user.name_regex.sub( r'\1\2{}\3'.format(user.formatted_name() + w.color(chat_color)), message) - message = message.decode('UTF-8', 'replace') message = HTMLParser.HTMLParser().unescape(message) data = u"{}\t{}".format(name, message).encode('utf-8') w.prnt_date_tags(self.channel_buffer, time_int, tags, data) |