by default, don't trigger command.regex events when in a statusmsg

This commit is contained in:
jesopo 2020-01-01 10:04:32 +00:00
parent 627b17e894
commit 9efb0b05fc

View file

@ -332,6 +332,9 @@ class Module(ModuleManager.BaseModule):
for hook in regex_hooks:
if event["action"] and hook.get_kwarg("ignore_action", True):
continue
if event["statusmsg"] and not hook.get_kwarg("statusmsg", False
):
continue
pattern = hook.get_kwarg("pattern", None)
if pattern: