Skip to content

Commit

Permalink
add channel-access key for starting and ending votes
Browse files Browse the repository at this point in the history
  • Loading branch information
jesopo committed Jun 20, 2019
1 parent 20df824 commit a9514df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/vote.py
Expand Up @@ -78,7 +78,8 @@ def start_vote(self, event):

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(
Expand All @@ -91,6 +92,7 @@ def end_vote(self, event):
:help: End a vote
:usage: <id>
:require_mode: o
:require_access: vote
:permission: vote
"""
vote_id = event["args_split"][0]
Expand Down

0 comments on commit a9514df

Please sign in to comment.