aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason2016-08-19 10:46:56 -0600
committerjason2016-08-19 10:46:56 -0600
commitfb67f4a6e0c88134b5a60f1795a019579129f744 (patch)
treed4805163226aa7201d1e7264df3ad3a0ba8ff6f4
parentb17c56c678e2fbe598bb0001f6e31a7a8f52cae2 (diff)
downloadwarmachine-ng-fb67f4a6e0c88134b5a60f1795a019579129f744.tar.gz
warmachine-ng-fb67f4a6e0c88134b5a60f1795a019579129f744.zip
don't private message deleted users
-rw-r--r--warmachine/connections/slack.py3
1 files changed, 2 insertions, 1 deletions
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):
112 destination)) 112 destination))
113 113
114 # slack doesn't allow bots to message other bots 114 # slack doesn't allow bots to message other bots
115 if '#' not in destination and self.user_map[_user]['is_bot']: 115 if '#' not in destination and (self.user_map[_user]['is_bot'] or\
116 self.user_map[_user]['deleted']):
116 return 117 return
117 118
118 destination = self.get_dm_id_by_user(_user) 119 destination = self.get_dm_id_by_user(_user)