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