aboutsummaryrefslogtreecommitdiff
path: root/modules/strip_color.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/strip_color.py')
-rw-r--r--modules/strip_color.py10
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")