require access for !alias/!calias

This commit is contained in:
jesopo 2019-11-20 11:39:51 +00:00
parent 17edb1c8cb
commit 03e4f780a0

View file

@ -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 ...]]")