aboutsummaryrefslogtreecommitdiff
path: root/modules/haveibeenpwned.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-30 17:29:09 +0100
committerGravatar jesopo2018-09-30 17:29:09 +0100
commit10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch)
tree4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/haveibeenpwned.py
parentreceived.command takes a final [command] part (diff)
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/haveibeenpwned.py')
-rw-r--r--modules/haveibeenpwned.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/haveibeenpwned.py b/modules/haveibeenpwned.py
index 0a328c3e..62566823 100644
--- a/modules/haveibeenpwned.py
+++ b/modules/haveibeenpwned.py
@@ -4,12 +4,12 @@ URL_HAVEIBEENPWNEDAPI = "https://haveibeenpwned.com/api/v2/breachedaccount/%s"
URL_HAVEIBEENPWNED = "https://haveibeenpwned.com/"
class Module(ModuleManager.BaseModule):
- @Utils.hook("received.command.beenpwned", usage="<username/email>",
- min_args=1)
+ @Utils.hook("received.command.beenpwned", min_args=1)
def beenpwned(self, event):
"""
- Find out if a username, email or similar has appeared in any
- hacked databases
+ :help: Find out if a username, email or similar has appeared in any
+ hacked databases
+ :usage: <username/email>
"""
page = Utils.get_url(URL_HAVEIBEENPWNEDAPI % event["args"], json=True,
code=True)