From ae9d099a41b703ce875cf8746a94b6995bbaedfb Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 28 Jun 2019 23:16:05 +0100 Subject: Refactor set/channelset/serverset/botset in to 'utils.Setting' objects --- modules/check_mode.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'modules/check_mode.py') diff --git a/modules/check_mode.py b/modules/check_mode.py index 1ad96e10..67d48172 100644 --- a/modules/check_mode.py +++ b/modules/check_mode.py @@ -6,12 +6,11 @@ LOWHIGH = { "low": "v", "high": "o" } -@utils.export("channelset", {"setting": "mode-low", - "help": "Set which channel mode is considered to be 'low' access", - "example": "v"}) -@utils.export("channelset", {"setting": "mode-high", - "help": "Set which channel mode is considered to be 'high' access", - "example": "o"}) + +@utils.export("channelset", utils.Setting("mode-low", + "Set which channel mode is considered to be 'low' access", example="v")) +@utils.export("channelset", utils.Setting("mode-high", + "Set which channel mode is considered to be 'high' access", example="o")) class Module(ModuleManager.BaseModule): def _check_command(self, event, channel, require_mode): if event["is_channel"] and require_mode: -- cgit v1.3.1-10-gc9f91