'vote-start-restricted' -> 'votes-start-restricted' so as to avoid find
This commit is contained in:
parent
19755778b6
commit
40a3a9ce08
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ STR_NOVOTE = "Unknown vote '%s'"
|
||||||
class VoteCastResult(enum.Enum):
|
class VoteCastResult(enum.Enum):
|
||||||
Cast = 1
|
Cast = 1
|
||||||
Changed = 2
|
Changed = 2
|
||||||
@utils.export("channelset", {"setting": "vote-start-restricted",
|
@utils.export("channelset", {"setting": "votes-start-restricted",
|
||||||
"help": "Whether starting a vote should be restricted to ops",
|
"help": "Whether starting a vote should be restricted to ops",
|
||||||
"validate": utils.bool_or_none, "example": "on"})
|
"validate": utils.bool_or_none, "example": "on"})
|
||||||
class Module(ModuleManager.BaseModule):
|
class Module(ModuleManager.BaseModule):
|
||||||
|
@ -76,7 +76,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
:usage: <description>
|
:usage: <description>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if event["target"].get_setting("vote-start-restricted", True):
|
if event["target"].get_setting("votes-start-restricted", True):
|
||||||
event["check_assert"](utils.Check("channel-mode", "o")|
|
event["check_assert"](utils.Check("channel-mode", "o")|
|
||||||
utils.Check("permission", "vote")|
|
utils.Check("permission", "vote")|
|
||||||
utils.Check("channel-access", "vote"))
|
utils.Check("channel-access", "vote"))
|
||||||
|
|
Loading…
Reference in a new issue