diff options
| author | 2019-06-28 23:16:05 +0100 | |
|---|---|---|
| committer | 2019-06-28 23:16:05 +0100 | |
| commit | ae9d099a41b703ce875cf8746a94b6995bbaedfb (patch) | |
| tree | c389ae3b967c43055a1c671b8cebf04db4e8f8b6 /modules/strip_color.py | |
| parent | message arg for HTTPWrongContentTypeException/HTTPParsingException (diff) | |
| signature | ||
Refactor set/channelset/serverset/botset in to 'utils.Setting' objects
Diffstat (limited to 'modules/strip_color.py')
| -rw-r--r-- | modules/strip_color.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/strip_color.py b/modules/strip_color.py index 28288209..736d066e 100644 --- a/modules/strip_color.py +++ b/modules/strip_color.py @@ -2,12 +2,10 @@ from src import ModuleManager, utils -@utils.export("serverset", {"setting": "strip-color", - "help": "Set whether I strip colors from my messages on this server", - "validate": utils.bool_or_none, "example": "on"}) -@utils.export("channelset", {"setting": "strip-color", - "help": "Set whether I strip colors from my messages on in this channel", - "validate": utils.bool_or_none, "example": "on"}) +@utils.export("serverset", utils.BoolSetting("strip-color", + "Set whether I strip colors from my messages on this server")) +@utils.export("channelset", utils.BoolSetting("strip-color", + "Set whether I strip colors from my messages on in this channel")) class Module(ModuleManager.BaseModule): @utils.hook("preprocess.send.privmsg") @utils.hook("preprocess.send.notice") |
