diff options
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): |
