diff options
| author | jason | 2016-08-18 13:33:21 -0600 |
|---|---|---|
| committer | jason | 2016-08-18 13:33:21 -0600 |
| commit | f321fde540d44a6a26716df5a1ea15a6dfb41628 (patch) | |
| tree | 1366dd6ab02561d15bc9f925321128c7630cdb3a /warmachine/addons/standup.py | |
| parent | 108c122fdccddc148f64606874d6c03c72c6b812 (diff) | |
| download | warmachine-ng-f321fde540d44a6a26716df5a1ea15a6dfb41628.tar.gz warmachine-ng-f321fde540d44a6a26716df5a1ea15a6dfb41628.zip | |
fix a bug with the pester counter in the standup plugin
Diffstat (limited to 'warmachine/addons/standup.py')
| -rw-r--r-- | warmachine/addons/standup.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/warmachine/addons/standup.py b/warmachine/addons/standup.py index bc7eabc..fd75473 100644 --- a/warmachine/addons/standup.py +++ b/warmachine/addons/standup.py | |||
| @@ -242,7 +242,8 @@ class StandUpPlugin(WarMachinePlugin): | |||
| 242 | self.log.info('Executing standup for channel {}'.format(channel)) | 242 | self.log.info('Executing standup for channel {}'.format(channel)) |
| 243 | asyncio.ensure_future(self.start_standup(connection, channel)) | 243 | asyncio.ensure_future(self.start_standup(connection, channel)) |
| 244 | 244 | ||
| 245 | def pester_schedule_func(self, connection, user, channel, pester): | 245 | def pester_schedule_func(self, connection, user, channel, pester, |
| 246 | pester_count=0): | ||
| 246 | """ | 247 | """ |
| 247 | Non-async function used to schedule pesters for a user. | 248 | Non-async function used to schedule pesters for a user. |
| 248 | 249 | ||
| @@ -251,7 +252,7 @@ class StandUpPlugin(WarMachinePlugin): | |||
| 251 | self.log.info('Pestering user {} to give a standup for channel ' | 252 | self.log.info('Pestering user {} to give a standup for channel ' |
| 252 | '{} (interval: {}s)'.format(user, channel, pester)) | 253 | '{} (interval: {}s)'.format(user, channel, pester)) |
| 253 | asyncio.ensure_future(self.standup_priv_msg( | 254 | asyncio.ensure_future(self.standup_priv_msg( |
| 254 | connection, user, channel, pester)) | 255 | connection, user, channel, pester, pester_count)) |
| 255 | 256 | ||
| 256 | def clear_old_standup_message_schedule_func(self, user): | 257 | def clear_old_standup_message_schedule_func(self, user): |
| 257 | """ | 258 | """ |