diff options
| author | 2019-05-23 10:28:14 +0100 | |
|---|---|---|
| committer | 2019-05-23 10:28:14 +0100 | |
| commit | cf29c371120929c53490d6017d5f43cf04f3cbc9 (patch) | |
| tree | fcdce0685aca7a7edb319b35589ecc4ce80edbd6 /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.py | 7 |
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): |
