diff options
author | Ryan Huber <rhuber@gmail.com> | 2016-03-28 09:13:57 -0700 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2016-03-28 09:13:57 -0700 |
commit | d58fe9dd98b5bbb2ecd3e5bb12fe7a916d7b457d (patch) | |
tree | 8458a9af3453e6dee92de1688a581584ce2990cb | |
parent | ac9b781b987a01aa1717f99c354b39e879e761f6 (diff) | |
parent | bb2903e6a9167ea20cf03cffc2dad9daaef6eee4 (diff) | |
download | wee-slack-d58fe9dd98b5bbb2ecd3e5bb12fe7a916d7b457d.tar.gz |
Merge pull request #203 from rawdigits/166-more-tags
Add more tags to message lines
-rw-r--r-- | wee_slack.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/wee_slack.py b/wee_slack.py index b1da9ec..2b84133 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -614,19 +614,21 @@ class Channel(object): """ set_read_marker = False time_float = float(time) + tags = "nick_" + user + # XXX: we should not set log1 for robots. if time_float != 0 and self.last_read >= time_float: - tags = "no_highlight,notify_none,logger_backlog_end" + 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" + tags = ",notify_highlight,log1" elif user != self.server.nick and self.name in self.server.users: - tags = "notify_private,notify_message" + tags = ",notify_private,notify_message,log1" 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" + tags = ",notify_message,log1" #don't write these to local log files #tags += ",no_log" time_int = int(time_float) |