add channel-access key for starting and ending votes
This commit is contained in:
parent
20df824f72
commit
a9514dfc44
1 changed files with 3 additions and 1 deletions
|
@ -78,7 +78,8 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
if event["target"].get_setting("vote-start-restricted", True):
|
||||
event["check_assert"](utils.Check("channel-mode", "o")|
|
||||
utils.Check("permission", "vote"))
|
||||
utils.Check("permission", "vote")|
|
||||
utils.Check("channel-access", "vote"))
|
||||
|
||||
vote = self._start_vote(event["target"], event["args"])
|
||||
event["stdout"].write(
|
||||
|
@ -91,6 +92,7 @@ class Module(ModuleManager.BaseModule):
|
|||
:help: End a vote
|
||||
:usage: <id>
|
||||
:require_mode: o
|
||||
:require_access: vote
|
||||
:permission: vote
|
||||
"""
|
||||
vote_id = event["args_split"][0]
|
||||
|
|
Loading…
Reference in a new issue