Don't let users change settings for other channels when they have +o in the
current channel
This commit is contained in:
parent
50e9f56ca3
commit
359e977d18
1 changed files with 2 additions and 1 deletions
|
@ -142,9 +142,9 @@ class Module(ModuleManager.BaseModule):
|
||||||
else:
|
else:
|
||||||
target = event["user"]
|
target = event["user"]
|
||||||
elif context == "channelset":
|
elif context == "channelset":
|
||||||
yield utils.Check("channel-mode", "o")|permission_check
|
|
||||||
|
|
||||||
if name:
|
if name:
|
||||||
|
yield permission_check
|
||||||
if name in event["server"].channels:
|
if name in event["server"].channels:
|
||||||
target = event["server"].channels.get(name)
|
target = event["server"].channels.get(name)
|
||||||
else:
|
else:
|
||||||
|
@ -152,6 +152,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
name)
|
name)
|
||||||
else:
|
else:
|
||||||
if event["is_channel"]:
|
if event["is_channel"]:
|
||||||
|
yield utils.Check("channel-mode", "o")|permission_check
|
||||||
target = event["target"]
|
target = event["target"]
|
||||||
else:
|
else:
|
||||||
raise utils.EventError(
|
raise utils.EventError(
|
||||||
|
|
Loading…
Reference in a new issue