aboutsummaryrefslogtreecommitdiff
path: root/modules/vote.py
diff options
context:
space:
mode:
authorGravatar jesopo2020-02-07 00:11:28 +0000
committerGravatar jesopo2020-02-07 00:11:28 +0000
commitd588760fc4fbfd5cc4acf9041b57f86a6a0cf39e (patch)
treecb72b1d33c2f895f561bfdba89f7382fa4c68455 /modules/vote.py
parentallow multipe require_accces (comma sep), support "low"/"high"/"admin" (diff)
signature
update other modules to use categorised require_access
Diffstat (limited to 'modules/vote.py')
-rw-r--r--modules/vote.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/vote.py b/modules/vote.py
index 02e5447e..a5d216f0 100644
--- a/modules/vote.py
+++ b/modules/vote.py
@@ -85,7 +85,7 @@ class Module(ModuleManager.BaseModule):
if event["target"].get_setting("votes-start-restricted", True):
event["check_assert"](utils.Check("channel-mode", "o")|
utils.Check("permission", "vote")|
- utils.Check("channel-access", "vote"))
+ utils.Check("channel-access", "low,vote"))
vote = self._start_vote(event["target"], event["args"])
event["stdout"].write(
@@ -99,7 +99,7 @@ class Module(ModuleManager.BaseModule):
:help: End a vote
:usage: <id>
:require_mode: o
- :require_access: vote
+ :require_access: high,vote
:permission: vote
"""
vote_id = event["args_split"][0]
@@ -117,10 +117,10 @@ class Module(ModuleManager.BaseModule):
:help: Cast choice for a given vote
:usage: <id> [choice]
"""
- if event["target"].get_setting("votes-scast-restricted", True):
+ if event["target"].get_setting("votes-cast-restricted", True):
event["check_assert"](utils.Check("channel-mode", "v")|
utils.Check("permission", "vote")|
- utils.Check("channel-access", "vote"))
+ utils.Check("channel-access", "low,vote"))
vote_id = event["args_split"][0]
vote = self._get_vote(event["target"], vote_id)