From 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 30 Sep 2018 17:29:09 +0100 Subject: Switch to using docstring for usage, permission and require_mode --- modules/haveibeenpwned.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/haveibeenpwned.py') 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="", - 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: """ page = Utils.get_url(URL_HAVEIBEENPWNEDAPI % event["args"], json=True, code=True) -- cgit v1.3.1-10-gc9f91