From 03e4f780a0abb2f0235261d3da95207261da3a4f Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 20 Nov 2019 11:39:51 +0000 Subject: [PATCH] require access for !alias/!calias --- modules/aliases.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ...]]")