Made replywaiters die properly
This commit is contained in:
@@ -188,6 +188,7 @@ class ReplyWaiter(AbsHook):
|
|||||||
# Does it match the regex? if not, ignore
|
# Does it match the regex? if not, ignore
|
||||||
match = re.match(self.pattern, msg['text'], flags=re.IGNORECASE)
|
match = re.match(self.pattern, msg['text'], flags=re.IGNORECASE)
|
||||||
if match:
|
if match:
|
||||||
|
self.dead = True
|
||||||
return self.callback(slack, msg, match)
|
return self.callback(slack, msg, match)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user