by default, don't trigger command.regex events when in a statusmsg
This commit is contained in:
parent
627b17e894
commit
9efb0b05fc
1 changed files with 3 additions and 0 deletions
|
@ -332,6 +332,9 @@ class Module(ModuleManager.BaseModule):
|
||||||
for hook in regex_hooks:
|
for hook in regex_hooks:
|
||||||
if event["action"] and hook.get_kwarg("ignore_action", True):
|
if event["action"] and hook.get_kwarg("ignore_action", True):
|
||||||
continue
|
continue
|
||||||
|
if event["statusmsg"] and not hook.get_kwarg("statusmsg", False
|
||||||
|
):
|
||||||
|
continue
|
||||||
|
|
||||||
pattern = hook.get_kwarg("pattern", None)
|
pattern = hook.get_kwarg("pattern", None)
|
||||||
if pattern:
|
if pattern:
|
||||||
|
|
Loading…
Reference in a new issue