diff options
| author | 2019-06-28 23:16:05 +0100 | |
|---|---|---|
| committer | 2019-06-28 23:16:05 +0100 | |
| commit | ae9d099a41b703ce875cf8746a94b6995bbaedfb (patch) | |
| tree | c389ae3b967c43055a1c671b8cebf04db4e8f8b6 /modules/vote.py | |
| parent | message arg for HTTPWrongContentTypeException/HTTPParsingException (diff) | |
Refactor set/channelset/serverset/botset in to 'utils.Setting' objects
Diffstat (limited to 'modules/vote.py')
| -rw-r--r-- | modules/vote.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/vote.py b/modules/vote.py index 2ca3b6b2..060c849a 100644 --- a/modules/vote.py +++ b/modules/vote.py @@ -10,9 +10,9 @@ STR_NOVOTE = "Unknown vote '%s'" class VoteCastResult(enum.Enum): Cast = 1 Changed = 2 -@utils.export("channelset", {"setting": "votes-start-restricted", - "help": "Whether starting a vote should be restricted to ops", - "validate": utils.bool_or_none, "example": "on"}) + +@utils.export("channelset", utils.BoolSetting("votes-start-restricted", + "Whether starting a vote should be restricted to ops")) class Module(ModuleManager.BaseModule): def _get_vote(self, channel, vote_id): return channel.get_setting("vote-%s" % vote_id, None) |
