aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2018-05-06 18:44:32 +0200
committerTollef Fog Heen <tfheen@err.no>2018-05-06 18:44:32 +0200
commitcb5bfaf3610d865b5df603901bceae4d9223fa8e (patch)
tree2c22c64508fa6f7e1ff6e6d732c48571b807e850
parent89864b5ab952b426e77cd76cc0941035335063df (diff)
downloadwee-slack-cb5bfaf3610d865b5df603901bceae4d9223fa8e.tar.gz
Make sure to compare nick against uncoloured nick when choosing tags
Fixes #531
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 97a602f..51e16f1 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1378,7 +1378,7 @@ class SlackChannel(object):
elif ts <= last_read:
tags = tag("backlog", user=tag_nick)
elif self.type in ["im", "mpdm"]:
- if nick != self.team.nick:
+ if tag_nick != self.team.nick:
tags = tag("dm", user=tag_nick)
self.new_messages = True
else: