!config access should be "config", not "set". remove unused check_assert
This commit is contained in:
parent
b037c3076f
commit
94ef49be1b
1 changed files with 1 additions and 2 deletions
|
@ -156,7 +156,6 @@ class Module(ModuleManager.BaseModule):
|
||||||
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:
|
||||||
event["check_assert"]
|
|
||||||
target = ConfigChannelTarget(self.bot, event["server"],
|
target = ConfigChannelTarget(self.bot, event["server"],
|
||||||
name)
|
name)
|
||||||
else:
|
else:
|
||||||
|
@ -167,7 +166,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
"Cannot change config for current channel when in "
|
"Cannot change config for current channel when in "
|
||||||
"private message")
|
"private message")
|
||||||
event["check_assert"](permission_check|
|
event["check_assert"](permission_check|
|
||||||
utils.Check("channel-access", target, "set")|
|
utils.Check("channel-access", target, "config")|
|
||||||
utils.Check("channel-mode", target, "o"))
|
utils.Check("channel-mode", target, "o"))
|
||||||
elif context == "serverset" or context == "botset":
|
elif context == "serverset" or context == "botset":
|
||||||
event["check_assert"](permission_check)
|
event["check_assert"](permission_check)
|
||||||
|
|
Loading…
Reference in a new issue