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
|
# 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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue