diff options
| author | 2019-09-26 12:14:55 +0100 | |
|---|---|---|
| committer | 2019-09-26 12:14:55 +0100 | |
| commit | 2e80b223de84d93716baae2ba0ea1a0ec7070686 (patch) | |
| tree | 711b48e0877707322f504d73e72220acee62a34d /modules/check_mode.py | |
| parent | !echo should have a min_args kwarg (diff) | |
| signature | ||
allow all preprocess.command and check.command failures to have a message
Diffstat (limited to 'modules/check_mode.py')
| -rw-r--r-- | modules/check_mode.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/check_mode.py b/modules/check_mode.py index 67d48172..9fe3f464 100644 --- a/modules/check_mode.py +++ b/modules/check_mode.py @@ -21,9 +21,10 @@ class Module(ModuleManager.BaseModule): if not event["target"].mode_or_above(event["user"], require_mode): - return "You do not have permission to do this" + return (utils.consts.PERMISSION_ERROR, + "You do not have permission to do this") else: - return utils.consts.PERMISSION_FORCE_SUCCESS + return utils.consts.PERMISSION_FORCE_SUCCESS, None @utils.hook("preprocess.command") def preprocess_command(self, event): |
