aboutsummaryrefslogtreecommitdiff
path: root/modules/check_mode.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-28 23:16:05 +0100
committerGravatar jesopo2019-06-28 23:16:05 +0100
commitae9d099a41b703ce875cf8746a94b6995bbaedfb (patch)
treec389ae3b967c43055a1c671b8cebf04db4e8f8b6 /modules/check_mode.py
parentmessage 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.py11
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: