diff options
author | Ryan Huber <rhuber@gmail.com> | 2014-10-24 17:09:35 -0700 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2014-10-24 17:09:35 -0700 |
commit | 22b2bfa2be5e9c98585071558fff521959d95c5e (patch) | |
tree | 05348ffc8bfb0df7d678235bc5394d1822803ca2 | |
parent | eadea1d2efd2bb8a7c247932b631cbe93b31dcd1 (diff) | |
download | wee-slack-22b2bfa2be5e9c98585071558fff521959d95c5e.tar.gz |
make highlights work
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index ff40278..31e32f9 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -332,6 +332,8 @@ class Channel(SlackThing): message = message.encode('ascii', 'ignore') if backlog == True or (time != 0 and self.last_read > time): tags = "no_highlight,notify_none,logger_backlog_end" + elif message.find(self.server.nick) > -1: + tags = "highlight" else: tags = "" time = int(float(time)) |