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:
|
||||
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(
|
||||
|
|
Loading…
Reference in a new issue