split permission for !alias/!balias in to two

This commit is contained in:
jesopo 2020-01-21 16:14:01 +00:00
parent 1230950e23
commit c336fdf93b

View file

@ -50,12 +50,13 @@ class Module(ModuleManager.BaseModule):
event["command"].args = self._arg_replace(alias_args, given_args, event["command"].args = self._arg_replace(alias_args, given_args,
{"NICK": event["user"].nickname}) {"NICK": event["user"].nickname})
@utils.hook("received.command.alias") @utils.hook("received.command.alias",
@utils.hook("received.command.balias") permission="alias")
@utils.hook("received.command.balias",
permission="balias")
@utils.hook("received.command.calias", @utils.hook("received.command.calias",
require_mode="o", require_access="alias") require_mode="o", require_access="alias")
@utils.kwarg("min_args", 1) @utils.kwarg("min_args", 1)
@utils.kwarg("permission", "alias")
@utils.kwarg("usage", "list") @utils.kwarg("usage", "list")
@utils.kwarg("usage", "add <alias> <command> [arg1 [arg2 ...]]") @utils.kwarg("usage", "add <alias> <command> [arg1 [arg2 ...]]")
@utils.kwarg("usage", "remove <alias>") @utils.kwarg("usage", "remove <alias>")