diff options
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 9849ac8..8fdf1b6 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2609,7 +2609,7 @@ def handle_rtmstart(login_data, eventrouter): channels[item["id"]] = SlackDMChannel(eventrouter, users, **item) for item in login_data["groups"]: - if item["name"].startswith('mpdm-'): + if item["is_mpim"]: channels[item["id"]] = SlackMPDMChannel(eventrouter, users, **item) else: channels[item["id"]] = SlackGroupChannel(eventrouter, **item) |