aboutsummaryrefslogtreecommitdiffstats
path: root/warmachine/connections/slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'warmachine/connections/slack.py')
-rw-r--r--warmachine/connections/slack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/warmachine/connections/slack.py b/warmachine/connections/slack.py
index ae8323a..82f6e75 100644
--- a/warmachine/connections/slack.py
+++ b/warmachine/connections/slack.py
@@ -107,9 +107,9 @@ class SlackWS(Connection):
107 else: 107 else:
108 _user = self.user_nick_to_id[destination] 108 _user = self.user_nick_to_id[destination]
109 109
110 if 'is_bot' not in self.user_map[_user]: 110 if '#' not in destination and 'is_bot' not in self.user_map[_user]:
111 self.log.error('is_bot property not found for user {}'.format( 111 self.log.error('is_bot property not found for user {}'.format(
112 message['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']: