aboutsummaryrefslogtreecommitdiff
path: root/modules/sed.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-23 10:28:14 +0100
committerGravatar jesopo2019-05-23 10:28:14 +0100
commitcf29c371120929c53490d6017d5f43cf04f3cbc9 (patch)
treefcdce0685aca7a7edb319b35589ecc4ce80edbd6 /modules/sed.py
parent`event.eat()` for command.regex hooks in github module (diff)
signature
Add usage examples for all settings
Diffstat (limited to 'modules/sed.py')
-rw-r--r--modules/sed.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/sed.py b/modules/sed.py
index 69cbaca7..646e5f47 100644
--- a/modules/sed.py
+++ b/modules/sed.py
@@ -6,10 +6,10 @@ REGEX_SED = re.compile("^s/")
@utils.export("channelset", {"setting": "sed",
"help": "Disable/Enable sed in a channel",
- "validate": utils.bool_or_none})
+ "validate": utils.bool_or_none, "example": "on"})
@utils.export("channelset", {"setting": "sed-sender-only",
"help": "Disable/Enable sed only looking at the messages sent by the user",
- "validate": utils.bool_or_none})
+ "validate": utils.bool_or_none, "example": "on"})
class Module(ModuleManager.BaseModule):
def _closest_setting(self, event, setting, default):
return event["target"].get_setting(setting,