diff options
| author | 2020-01-01 10:04:32 +0000 | |
|---|---|---|
| committer | 2020-01-01 10:04:32 +0000 | |
| commit | 9efb0b05fcbb547b78928470a647b55c913d6b7a (patch) | |
| tree | 1be9482f905e9219d66df738214b002293fbe456 /src/core_modules | |
| parent | pass 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__.py | 3 |
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: |
