From fb67f4a6e0c88134b5a60f1795a019579129f744 Mon Sep 17 00:00:00 2001 From: jason Date: Fri, 19 Aug 2016 10:46:56 -0600 Subject: don't private message deleted users --- warmachine/connections/slack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/warmachine/connections/slack.py b/warmachine/connections/slack.py index 82f6e75..deb0a8e 100644 --- a/warmachine/connections/slack.py +++ b/warmachine/connections/slack.py @@ -112,7 +112,8 @@ class SlackWS(Connection): destination)) # slack doesn't allow bots to message other bots - if '#' not in destination and self.user_map[_user]['is_bot']: + if '#' not in destination and (self.user_map[_user]['is_bot'] or\ + self.user_map[_user]['deleted']): return destination = self.get_dm_id_by_user(_user) -- cgit v1.2.1