From d588760fc4fbfd5cc4acf9041b57f86a6a0cf39e Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 7 Feb 2020 00:11:28 +0000 Subject: update other modules to use categorised require_access --- modules/vote.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/vote.py') 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: :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: [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) -- cgit v1.3.1-10-gc9f91