diff options
| author | jason | 2016-08-18 11:38:20 -0600 |
|---|---|---|
| committer | jason | 2016-08-18 11:38:20 -0600 |
| commit | 8bcbcf9f4628af2ad6e65ec9333d534f13710bde (patch) | |
| tree | f791c79042ff2dadc9c1c5e052beb604b67eb010 /warmachine/addons/standup.py | |
| parent | 3315022045e79109c94cb59966a735543b3b0697 (diff) | |
| download | warmachine-ng-8bcbcf9f4628af2ad6e65ec9333d534f13710bde.tar.gz warmachine-ng-8bcbcf9f4628af2ad6e65ec9333d534f13710bde.zip | |
Fix a bug that would message a channel for every pester that occured for a user
Diffstat (limited to 'warmachine/addons/standup.py')
| -rw-r--r-- | warmachine/addons/standup.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/warmachine/addons/standup.py b/warmachine/addons/standup.py index 59c4f3c..bae4029 100644 --- a/warmachine/addons/standup.py +++ b/warmachine/addons/standup.py | |||
| @@ -299,7 +299,9 @@ class StandUpPlugin(WarMachinePlugin): | |||
| 299 | self.log.debug('Messaging user: {}'.format(user)) | 299 | self.log.debug('Messaging user: {}'.format(user)) |
| 300 | 300 | ||
| 301 | if user in self.users_awaiting_reply: | 301 | if user in self.users_awaiting_reply: |
| 302 | self.users_awaiting_reply[user]['for_channels'].append(channel) | 302 | # Don't readd an existing channel |
| 303 | if channel not in self.users_awaiting_reply[user]['for_channels']: | ||
| 304 | self.users_awaiting_reply[user]['for_channels'].append(channel) | ||
| 303 | 305 | ||
| 304 | self.log.debug('Adding to list of users waiting on a reply for: ' | 306 | self.log.debug('Adding to list of users waiting on a reply for: ' |
| 305 | '{}'.format( | 307 | '{}'.format( |