diff options
| author | jason | 2016-08-19 10:43:45 -0600 |
|---|---|---|
| committer | jason | 2016-08-19 10:43:45 -0600 |
| commit | b17c56c678e2fbe598bb0001f6e31a7a8f52cae2 (patch) | |
| tree | a60d14c9ce757ef7e20b97934c782edd97256e10 | |
| parent | 26106169738df19662321a20bbb5a7619a60a0b5 (diff) | |
| download | warmachine-ng-b17c56c678e2fbe598bb0001f6e31a7a8f52cae2.tar.gz warmachine-ng-b17c56c678e2fbe598bb0001f6e31a7a8f52cae2.zip | |
dumbdumb
| -rw-r--r-- | warmachine/connections/slack.py | 4 |
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']: |