aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 7f3900a..072b06c 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1486,6 +1486,18 @@ def process_channel_archive(message_json):
channel.detach_buffer()
+def process_group_join(message_json):
+ process_channel_join(message_json)
+
+
+def process_group_leave(message_json):
+ process_channel_leave(message_json)
+
+
+def process_group_topic(message_json):
+ process_channel_topic(message_json)
+
+
def process_group_left(message_json):
server = servers.find(message_json["_server"])
server.channels.find(message_json["channel"]).close(False)
@@ -1663,7 +1675,7 @@ def render_message(message_json, force=False):
def process_message(message_json, cache=True):
try:
# send these subtype messages elsewhere
- known_subtypes = ["message_changed", 'message_deleted', 'channel_join', 'channel_leave', 'channel_topic', 'bot_enable', 'bot_disable']
+ known_subtypes = ["message_changed", 'message_deleted', 'channel_join', 'channel_leave', 'channel_topic', 'group_join', 'group_leave', 'group_topic', 'bot_enable', 'bot_disable']
if "subtype" in message_json and message_json["subtype"] in known_subtypes:
proc[message_json["subtype"]](message_json)