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 [arg1 [arg2 ...]]")