diff options
| author | 2019-06-25 20:00:53 +0100 | |
|---|---|---|
| committer | 2019-06-25 20:00:53 +0100 | |
| commit | 40a3a9ce086aa7fb97329d6c801136db3cc0a29d (patch) | |
| tree | abaf355193851373d23ae94a50419899b15619c3 /modules/vote.py | |
| parent | `event` doesn't exist in _get_title (diff) | |
| signature | ||
'vote-start-restricted' -> 'votes-start-restricted' so as to avoid find
Diffstat (limited to 'modules/vote.py')
| -rw-r--r-- | modules/vote.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/vote.py b/modules/vote.py index 547a4b75..2ca3b6b2 100644 --- a/modules/vote.py +++ b/modules/vote.py @@ -10,7 +10,7 @@ STR_NOVOTE = "Unknown vote '%s'" class VoteCastResult(enum.Enum): Cast = 1 Changed = 2 -@utils.export("channelset", {"setting": "vote-start-restricted", +@utils.export("channelset", {"setting": "votes-start-restricted", "help": "Whether starting a vote should be restricted to ops", "validate": utils.bool_or_none, "example": "on"}) class Module(ModuleManager.BaseModule): @@ -76,7 +76,7 @@ class Module(ModuleManager.BaseModule): :usage: <description> """ - if event["target"].get_setting("vote-start-restricted", True): + 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")) |
