require access for !alias/!calias
This commit is contained in:
parent
17edb1c8cb
commit
03e4f780a0
1 changed files with 3 additions and 2 deletions
|
@ -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 ...]]")
|
||||
|
|
Loading…
Reference in a new issue