aboutsummaryrefslogtreecommitdiff
path: root/modules/check_urls.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/check_urls.py
parent`event.eat()` for command.regex hooks in github module (diff)
Add usage examples for all settings
Diffstat (limited to 'modules/check_urls.py')
-rw-r--r--modules/check_urls.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/check_urls.py b/modules/check_urls.py
index f52c2442..62f91e21 100644
--- a/modules/check_urls.py
+++ b/modules/check_urls.py
@@ -8,13 +8,14 @@ RE_URL = re.compile(r"https?://\S+", re.I)
@utils.export("channelset", {"setting": "check-urls",
"help": "Enable/Disable automatically checking for malicious URLs",
- "validate": utils.bool_or_none})
+ "validate": utils.bool_or_none, "example": "on"})
@utils.export("serverset", {"setting": "check-urls",
"help": "Enable/Disable automatically checking for malicious URLs",
- "validate": utils.bool_or_none})
+ "validate": utils.bool_or_none, "example": "on"})
@utils.export("channelset", {"setting": "check-urls-kick",
"help": "Enable/Disable automatically kicking users that "
- "send malicious URLs", "validate": utils.bool_or_none})
+ "send malicious URLs", "validate": utils.bool_or_none,
+ "example": "on"})
class Module(ModuleManager.BaseModule):
@utils.hook("received.message.channel")
def message(self, event):