diff options
Diffstat (limited to 'modules/check_mode.py')
| -rw-r--r-- | modules/check_mode.py | 11 |
1 files changed, 5 insertions, 6 deletions
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: |
