diff options
| author | 2019-11-20 11:39:51 +0000 | |
|---|---|---|
| committer | 2019-11-20 11:39:51 +0000 | |
| commit | 03e4f780a0abb2f0235261d3da95207261da3a4f (patch) | |
| tree | e65b754bf45081802c3a1f0c4771bc593cb9e2a5 /modules/aliases.py | |
| parent | move command aliases out to their own module (aliases.py) (diff) | |
| signature | ||
require access for !alias/!calias
Diffstat (limited to 'modules/aliases.py')
| -rw-r--r-- | modules/aliases.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/aliases.py b/modules/aliases.py index 90619908..4bd773b2 100644 --- a/modules/aliases.py +++ b/modules/aliases.py @@ -56,8 +56,9 @@ class Module(ModuleManager.BaseModule): event["command"].args = self._arg_replace(alias_args, event["command"].args.split(" ")) - @utils.hook("received.command.alias") - @utils.hook("received.command.calias") + @utils.hook("received.command.alias", permission="alias") + @utils.hook("received.command.calias", + require_mode="o", require_access="alias") @utils.kwarg("min_args", 1) @utils.kwarg("usage", "list") @utils.kwarg("usage", "add <alias> <command> [arg1 [arg2 ...]]") |
