aboutsummaryrefslogtreecommitdiff
path: root/modules/config.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-26 12:14:55 +0100
committerGravatar jesopo2019-09-26 12:14:55 +0100
commit2e80b223de84d93716baae2ba0ea1a0ec7070686 (patch)
tree711b48e0877707322f504d73e72220acee62a34d /modules/config.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/config.py')
-rw-r--r--modules/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/config.py b/modules/config.py
index 50b0c904..97638a93 100644
--- a/modules/config.py
+++ b/modules/config.py
@@ -102,9 +102,10 @@ class Module(ModuleManager.BaseModule):
else:
context = context[0]
- return "Please set %s, e.g.: %sconfig %s %s %s" % (
+ error = "Please set %s, e.g.: %sconfig %s %s %s" % (
require_setting, event["command_prefix"], context,
require_setting, example)
+ return utils.consts.PERMISSION_ERROR, error
def _get_export_setting(self, context):
settings = self.exports.get_all(context)