aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules
diff options
context:
space:
mode:
authorGravatar jesopo2020-01-01 10:04:32 +0000
committerGravatar jesopo2020-01-01 10:04:32 +0000
commit9efb0b05fcbb547b78928470a647b55c913d6b7a (patch)
tree1be9482f905e9219d66df738214b002293fbe456 /src/core_modules
parentpass through (as well as stripping) statusmsg characters to events (diff)
signature
by default, don't trigger command.regex events when in a statusmsg
Diffstat (limited to 'src/core_modules')
-rw-r--r--src/core_modules/commands/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core_modules/commands/__init__.py b/src/core_modules/commands/__init__.py
index e330e2c6..9822903f 100644
--- a/src/core_modules/commands/__init__.py
+++ b/src/core_modules/commands/__init__.py
@@ -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: