aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Messer <seth.messer@gmail.com>2016-04-10 10:23:46 -1000
committerSeth Messer <seth.messer@gmail.com>2016-05-06 17:51:26 -0500
commit659d723723b6caffb93755ef88f93579d3a302dd (patch)
treebd9ca1de82ec5221579b4191858a3bab0dedc987
parentb7b6f7dec92463810548c5760c7cbbddee0c1418 (diff)
downloadwee-slack-659d723723b6caffb93755ef88f93579d3a302dd.tar.gz
Initial add to trigger weechat highlights/notifications
More updates to get highlights working add that gitignore Hopefully handles all situations where a message would have highlights Removed additional settings; was not needed Resolve code review items - fix an erroneously removed condition for unsetting a config option - remove notify_highlight tag; is redundant - thanks @tfheen! Removes project-local .gitignore Undo an uncomment Reverting back to including the previously commented line
-rw-r--r--wee_slack.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 62f790f..8e6b8d5 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -427,7 +427,7 @@ class Channel(object):
if channel_buffer != main_weechat_buffer:
self.channel_buffer = channel_buffer
w.buffer_set(self.channel_buffer, "localvar_set_nick", self.server.nick)
-# w.buffer_set(self.channel_buffer, "highlight_words", self.server.nick)
+ w.buffer_set(self.channel_buffer, "highlight_words", self.server.nick)
else:
self.channel_buffer = None
channels.update_hashtable()
@@ -622,13 +622,13 @@ class Channel(object):
elif message.find(self.server.nick.encode('utf-8')) > -1:
tags = ",notify_highlight,log1"
elif user != self.server.nick and self.name in self.server.users:
- tags = ",notify_private,notify_message,log1"
+ tags = ",notify_private,notify_message,log1,irc_privmsg"
elif self.muted:
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"
else:
- tags = ",notify_message,log1"
+ tags = ",notify_message,log1,irc_privmsg"
#don't write these to local log files
#tags += ",no_log"
time_int = int(time_float)