From 88e796e33489bb35c85b7c66e47327f5ad2aa659 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 18 Jun 2019 07:59:53 +0100 Subject: check-mode and channel-access should reference the computed target, not "current channel" --- modules/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/config.py') diff --git a/modules/config.py b/modules/config.py index df6bf350..d041e178 100644 --- a/modules/config.py +++ b/modules/config.py @@ -167,8 +167,8 @@ class Module(ModuleManager.BaseModule): "Cannot change config for current channel when in " "private message") event["check_assert"](permission_check| - utils.Check("channel-access", "set")| - utils.Check("channel-mode", "o")) + utils.Check("channel-access", target, "set")| + utils.Check("channel-mode", target, "o")) elif context == "serverset" or context == "botset": event["check_assert"](permission_check) -- cgit v1.3.1-10-gc9f91