aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 3f04454..7298a8c 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -559,6 +559,8 @@ class Channel(SlackThing):
tags = "notify_highlight"
elif user != self.server.nick and self.name in self.server.users:
tags = "notify_private,notify_message"
+ elif user in [w.prefix("join"), w.prefix("quit")]:
+ tags = "irc_smart_filter"
else:
tags = "notify_message"
time_int = int(time_float)
@@ -1239,6 +1241,10 @@ def process_message(message_json):
append = "(deleted)"
text = ""
channel.buffer_prnt_changed(None, text, message_json["deleted_ts"], append)
+ elif message_json.get("subtype", "") == "channel_leave":
+ channel.buffer_prnt(w.prefix("quit").rstrip(), text, time)
+ elif message_json.get("subtype", "") == "channel_join":
+ channel.buffer_prnt(w.prefix("join").rstrip(), text, time)
else:
channel.buffer_prnt(name, text, time)
except: