bot admins should be allowed to use !calias

This commit is contained in:
jesopo 2019-11-20 14:33:46 +00:00
parent 7a7610acb8
commit 1823371380

View file

@ -56,10 +56,11 @@ class Module(ModuleManager.BaseModule):
event["command"].args = self._arg_replace(alias_args,
event["command"].args.split(" "))
@utils.hook("received.command.alias", permission="alias")
@utils.hook("received.command.alias")
@utils.hook("received.command.calias",
require_mode="o", require_access="alias")
@utils.kwarg("min_args", 1)
@utils.kwarg("permission", "alias")
@utils.kwarg("usage", "list")
@utils.kwarg("usage", "add <alias> <command> [arg1 [arg2 ...]]")
@utils.kwarg("usage", "remove <alias>")