aboutsummaryrefslogtreecommitdiffstats
path: root/warmachine/addons/standup.py
diff options
context:
space:
mode:
authorjason2016-08-18 13:10:13 -0600
committerjason2016-08-18 13:10:13 -0600
commit2aeaaaa34ac0f57cdb859714910925b0c0c29e87 (patch)
tree1f6e0708e5d26bde725fc5c65ea1de69d429d1cd /warmachine/addons/standup.py
parent8bcbcf9f4628af2ad6e65ec9333d534f13710bde (diff)
downloadwarmachine-ng-2aeaaaa34ac0f57cdb859714910925b0c0c29e87.tar.gz
warmachine-ng-2aeaaaa34ac0f57cdb859714910925b0c0c29e87.zip
change !standup-ignore to a space seperated list of nicks
Diffstat (limited to 'warmachine/addons/standup.py')
-rw-r--r--warmachine/addons/standup.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/warmachine/addons/standup.py b/warmachine/addons/standup.py
index bae4029..d26567b 100644
--- a/warmachine/addons/standup.py
+++ b/warmachine/addons/standup.py
@@ -16,6 +16,7 @@ class StandUpPlugin(WarMachinePlugin):
16 !standup-add <24 hr time to kick off> 16 !standup-add <24 hr time to kick off>
17 !standup-remove 17 !standup-remove
18 Direct Message: 18 Direct Message:
19 !standup-ignore [users]
19 !standup-schedules 20 !standup-schedules
20 !standup-waiting_replies 21 !standup-waiting_replies
21 """ 22 """
@@ -128,7 +129,7 @@ class StandUpPlugin(WarMachinePlugin):
128 129
129 # ====================================================================== 130 # ======================================================================
130 # !standup-ignore 131 # !standup-ignore
131 # !standup-ignore <comma seperated list of users to ignore> 132 # !standup-ignore <space seperated list of users to ignore>
132 # 133 #
133 # Ignore users provided when private messaging asking the standup 134 # Ignore users provided when private messaging asking the standup
134 # questions. 135 # questions.
@@ -137,7 +138,7 @@ class StandUpPlugin(WarMachinePlugin):
137 elif cmd == '!standup-ignore' and channel \ 138 elif cmd == '!standup-ignore' and channel \
138 and channel in self.standup_schedules: 139 and channel in self.standup_schedules:
139 if parts: 140 if parts:
140 users_to_ignore = ''.join(parts).split(',') 141 users_to_ignore = ''.join(parts).split(' ')
141 for u in users_to_ignore: 142 for u in users_to_ignore:
142 if u not in self.standup_schedules[channel]['ignoring']: 143 if u not in self.standup_schedules[channel]['ignoring']:
143 self.log.info('Ignoring {} in channel {}'.format( 144 self.log.info('Ignoring {} in channel {}'.format(