aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Hveem <tor@hveem.no>2016-10-31 14:19:21 +0100
committerTollef Fog Heen <tfheen@err.no>2016-11-04 12:20:20 +0100
commit6fbbaeb50d42cf1fd6411b990dde43781154a2a1 (patch)
treed0f12d1882a93e4d216f5216c3069000c29abc41
parentc70db4e01e2cbab2a586b7f9bf72feaaa2991a60 (diff)
downloadwee-slack-6fbbaeb50d42cf1fd6411b990dde43781154a2a1.tar.gz
Fix obvious mistake with tags
Tag string is being overwritten instead of appended.
-rw-r--r--wee_slack.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 1720862..5f860e3 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -653,15 +653,15 @@ class Channel(object):
tags += ",no_highlight,notify_none,logger_backlog_end"
set_read_marker = True
elif message.find(self.server.nick.encode('utf-8')) > -1:
- tags = ",notify_highlight,log1"
+ tags += ",notify_highlight,log1"
elif user != self.server.nick and self.name in self.server.users:
- tags = ",notify_private,notify_message,log1,irc_privmsg"
+ tags += ",notify_private,notify_message,log1,irc_privmsg"
elif self.muted:
- tags = ",no_highlight,notify_none,logger_backlog_end"
+ tags += ",no_highlight,notify_none,logger_backlog_end"
elif user in [x.strip() for x in w.prefix("join"), w.prefix("quit")]:
- tags = ",irc_smart_filter"
+ tags += ",irc_smart_filter"
else:
- tags = ",notify_message,log1,irc_privmsg"
+ tags += ",notify_message,log1,irc_privmsg"
# don't write these to local log files
# tags += ",no_log"
time_int = int(time_float)