aboutsummaryrefslogtreecommitdiff
path: root/modules/haveibeenpwned.py
diff options
context:
space:
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 62566823..3812dd58 100644
--- a/modules/haveibeenpwned.py
+++ b/modules/haveibeenpwned.py
@@ -1,18 +1,18 @@
-from src import ModuleManager, Utils
+from src import ModuleManager, utils
URL_HAVEIBEENPWNEDAPI = "https://haveibeenpwned.com/api/v2/breachedaccount/%s"
URL_HAVEIBEENPWNED = "https://haveibeenpwned.com/"
class Module(ModuleManager.BaseModule):
- @Utils.hook("received.command.beenpwned", min_args=1)
+ @utils.hook("received.command.beenpwned", min_args=1)
def beenpwned(self, event):
"""
: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)
+ page = utils.http.get_url(URL_HAVEIBEENPWNEDAPI % event["args"],
+ json=True, code=True)
if page:
code, page = page
if code == 200: