Made replywaiters die properly

This commit is contained in:
Jacob Henry 2018-11-29 15:36:00 -05:00
parent d2843fb7ed
commit 297773ea12
1 changed files with 1 additions and 0 deletions

View File

@ -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