aboutsummaryrefslogtreecommitdiff
path: root/modules/haveibeenpwned.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-03 13:22:37 +0100
committerGravatar jesopo2018-10-03 13:22:37 +0100
commit69d58eede2e9bf83aa1ed1d8fcf956efde494726 (patch)
tree11aa30f2a357f3be23ad97315dae3df051455cbe /modules/haveibeenpwned.py
parentAdd a way to not add a user automatically in IRCServer.get_user (diff)
Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
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: