From cf29c371120929c53490d6017d5f43cf04f3cbc9 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 23 May 2019 10:28:14 +0100 Subject: Add usage examples for all settings --- modules/check_urls.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules/check_urls.py') 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): -- cgit v1.3.1-10-gc9f91