Allow admin users to start/end votes
This commit is contained in:
parent
31503f3f75
commit
933668f0a3
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
:help: Start a yes/no vote
|
:help: Start a yes/no vote
|
||||||
:usage: <description>
|
:usage: <description>
|
||||||
:require_mode: o
|
:require_mode: o
|
||||||
|
:permission: vote
|
||||||
"""
|
"""
|
||||||
current_vote = self._get_vote(event["target"])
|
current_vote = self._get_vote(event["target"])
|
||||||
if not current_vote == None:
|
if not current_vote == None:
|
||||||
|
@ -54,6 +55,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
"""
|
"""
|
||||||
:help: End the current yes/no vote
|
:help: End the current yes/no vote
|
||||||
:require_mode: o
|
:require_mode: o
|
||||||
|
:permission: vote
|
||||||
"""
|
"""
|
||||||
vote = self._get_vote(event["target"])
|
vote = self._get_vote(event["target"])
|
||||||
if vote == None:
|
if vote == None:
|
||||||
|
|
Loading…
Reference in a new issue