From c336fdf93b5128f750f2472613f5c8a56da01ed9 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 21 Jan 2020 16:14:01 +0000 Subject: [PATCH] split permission for !alias/!balias in to two --- src/core_modules/aliases.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core_modules/aliases.py b/src/core_modules/aliases.py index 277a4922..b2bc4c78 100644 --- a/src/core_modules/aliases.py +++ b/src/core_modules/aliases.py @@ -50,12 +50,13 @@ class Module(ModuleManager.BaseModule): event["command"].args = self._arg_replace(alias_args, given_args, {"NICK": event["user"].nickname}) - @utils.hook("received.command.alias") - @utils.hook("received.command.balias") + @utils.hook("received.command.alias", + permission="alias") + @utils.hook("received.command.balias", + permission="balias") @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 ")