aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-14 16:34:48 +0100
committerGravatar jesopo2019-06-14 16:34:48 +0100
commit359e977d18a4b5b8bab1b4f030c18c434d9db5a2 (patch)
tree72a5151e269b40705e94a0b28096a5e6ef6c9312 /modules
parentShow when a server connected instead of "bytes read/written per second" in stats (diff)
signature
Don't let users change settings for other channels when they have +o in the
current channel
Diffstat (limited to 'modules')
-rw-r--r--modules/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/config.py b/modules/config.py
index 665a9986..7917479b 100644
--- a/modules/config.py
+++ b/modules/config.py
@@ -142,9 +142,9 @@ class Module(ModuleManager.BaseModule):
else:
target = event["user"]
elif context == "channelset":
- yield utils.Check("channel-mode", "o")|permission_check
if name:
+ yield permission_check
if name in event["server"].channels:
target = event["server"].channels.get(name)
else:
@@ -152,6 +152,7 @@ class Module(ModuleManager.BaseModule):
name)
else:
if event["is_channel"]:
+ yield utils.Check("channel-mode", "o")|permission_check
target = event["target"]
else:
raise utils.EventError(