diff options
| author | 2019-06-18 07:59:53 +0100 | |
|---|---|---|
| committer | 2019-06-18 08:01:20 +0100 | |
| commit | 88e796e33489bb35c85b7c66e47327f5ad2aa659 (patch) | |
| tree | 2f6ae8d3e0df4d0ba225ef9a67f175471765da19 /modules/config.py | |
| parent | Update CHANGELOG.md (diff) | |
| signature | ||
check-mode and channel-access should reference the computed target, not
"current channel"
Diffstat (limited to 'modules/config.py')
| -rw-r--r-- | modules/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
