From 1823371380c2f3e025af093c04bbdef4ceb82917 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 20 Nov 2019 14:33:46 +0000 Subject: [PATCH] bot admins should be allowed to use !calias --- modules/aliases.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/aliases.py b/modules/aliases.py index ccb4a980..4177eab1 100644 --- a/modules/aliases.py +++ b/modules/aliases.py @@ -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 [arg1 [arg2 ...]]") @utils.kwarg("usage", "remove ")