diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-02-21 16:18:14 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2017-02-21 16:18:14 -0800 |
commit | c3078c51e618956240f0dc9a6472b3a022c7550d (patch) | |
tree | 7f2f309c4f042a1099581b7fcc91350f50fcc5aa /wee_slack.py | |
parent | d7e42876fac7e5797215023d8e46ae09724c6602 (diff) | |
download | wee-slack-c3078c51e618956240f0dc9a6472b3a022c7550d.tar.gz |
fix new private group/channel creation
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index 637e0f5..8a4917d 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2106,6 +2106,15 @@ def process_im_close(message_json, eventrouter, **kwargs): cbuf = kwargs['team'].channels[item["channel"]].channel_buffer eventrouter.weechat_controller.unregister_buffer(cbuf, False, True) +def process_group_joined(message_json, eventrouter, **kwargs): + item = message_json["channel"] + if item["name"].startswith("mpdm-"): + c = SlackMPDMChannel(eventrouter, team=kwargs["team"], **item) + else: + c = SlackGroupChannel(eventrouter, team=kwargs["team"], **item) + kwargs['team'].channels[item["id"]] = c + kwargs['team'].channels[item["id"]].open() + def process_reaction_added(message_json, eventrouter, **kwargs): channel = kwargs['team'].channels[message_json["item"]["channel"]] if message_json["item"].get("type") == "message": |