From 94ef49be1b3267f4151d807ef1bcfc3552af8e99 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 16 Aug 2019 10:25:46 +0100 Subject: [PATCH] !config access should be "config", not "set". remove unused check_assert --- modules/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/config.py b/modules/config.py index 05c1ca23..6a4224d0 100644 --- a/modules/config.py +++ b/modules/config.py @@ -156,7 +156,6 @@ class Module(ModuleManager.BaseModule): if name in event["server"].channels: target = event["server"].channels.get(name) else: - event["check_assert"] target = ConfigChannelTarget(self.bot, event["server"], name) else: @@ -167,7 +166,7 @@ class Module(ModuleManager.BaseModule): "Cannot change config for current channel when in " "private message") event["check_assert"](permission_check| - utils.Check("channel-access", target, "set")| + utils.Check("channel-access", target, "config")| utils.Check("channel-mode", target, "o")) elif context == "serverset" or context == "botset": event["check_assert"](permission_check)