diff options
Diffstat (limited to 'modules/channel_access.py')
| -rw-r--r-- | modules/channel_access.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/channel_access.py b/modules/channel_access.py index a15f983e..100b22e0 100644 --- a/modules/channel_access.py +++ b/modules/channel_access.py @@ -18,9 +18,10 @@ class Module(ModuleManager.BaseModule): if require_access: if self._has_channel_access(target, event["user"], require_access): - return utils.consts.PERMISSION_FORCE_SUCCESS + return utils.consts.PERMISSION_FORCE_SUCCESS, None else: - return "You do not have permission to do this" + return (utils.consts.PERMISSION_ERROR, + "You do not have permission to do this") @utils.hook("preprocess.command") def preprocess_command(self, event): |
