diff options
| author | 2019-11-26 15:32:24 +0000 | |
|---|---|---|
| committer | 2019-11-26 15:32:24 +0000 | |
| commit | 14c30c4c054a9f20a4d7374c4d3ebbaa6d9f00cd (patch) | |
| tree | 9e8629fbb5809908a61c7f9095e2017c35cd44b5 /modules/config.py | |
| parent | explicitly use "lxml" for finding page encoding (diff) | |
| signature | ||
add check.command.permission and check.command.authenticated callbacks
Diffstat (limited to 'modules/config.py')
| -rw-r--r-- | modules/config.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/config.py b/modules/config.py index 0a24e139..48e3eb62 100644 --- a/modules/config.py +++ b/modules/config.py @@ -150,13 +150,11 @@ class Module(ModuleManager.BaseModule): raise ConfigSettingInexistent() @utils.hook("received.command.c", alias_of="config") - @utils.hook("received.command.config", min_args=1) + @utils.hook("received.command.config") + @utils.kwarg("min_args", 1) + @utils.kwarg("help", "Change config options") + @utils.kwarg("usage", "<context>[:name] [-][setting [value]]") def config(self, event): - """ - :help: Change config options - :usage: <context>[:name] [-][setting [value]] - """ - arg_count = len(event["args_split"]) context_desc, _, name = event["args_split"][0].partition(":") |
