aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-20 12:13:55 +0100
committerGravatar jesopo2019-06-20 12:13:55 +0100
commita9514dfc441b39d5f33343aee027ed755b482bf3 (patch)
treeb43ef11f2a15ab2c71f3faa680144e1dde599244 /modules
parentMake it configurable whether people need permission to start a vote (diff)
signature
add channel-access key for starting and ending votes
Diffstat (limited to 'modules')
-rw-r--r--modules/vote.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/vote.py b/modules/vote.py
index c80890a9..547a4b75 100644
--- a/modules/vote.py
+++ b/modules/vote.py
@@ -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]