diff options
| author | 2019-06-28 23:16:05 +0100 | |
|---|---|---|
| committer | 2019-06-28 23:16:05 +0100 | |
| commit | ae9d099a41b703ce875cf8746a94b6995bbaedfb (patch) | |
| tree | c389ae3b967c43055a1c671b8cebf04db4e8f8b6 /modules/check_mode.py | |
| parent | message arg for HTTPWrongContentTypeException/HTTPParsingException (diff) | |
Refactor set/channelset/serverset/botset in to 'utils.Setting' objects
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: |
