diff options
| author | 2018-12-11 22:26:38 +0000 | |
|---|---|---|
| committer | 2018-12-11 22:26:38 +0000 | |
| commit | 793d234a0b924c0330e88f07f68b13559b42e4ac (patch) | |
| tree | 90ecd3746a77e17da915f90ec057cb16ead82c05 /modules/check_urls.py | |
| parent | Actually use `action_desc` in github.py.issues, so that we can see what things (diff) | |
'utils.http.get_url' -> 'utils.http.request', return a Response object from
utils.http.request
Diffstat (limited to 'modules/check_urls.py')
| -rw-r--r-- | modules/check_urls.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/check_urls.py b/modules/check_urls.py index 210ec58f..f52c2442 100644 --- a/modules/check_urls.py +++ b/modules/check_urls.py @@ -22,11 +22,11 @@ class Module(ModuleManager.BaseModule): if match and event["channel"].get_setting("check-urls", event["server"].get_setting("check-urls", False)): url = match.group(0) - page = utils.http.get_url(URL_VIRUSTOTAL, get_params={ + page = utils.http.request(URL_VIRUSTOTAL, get_params={ "apikey": self.bot.config["virustotal-api-key"], "resource": url}, json=True) - if page and page.get("positives", 0) > 1: + if page and page.data.get("positives", 0) > 1: if event["channel"].get_setting("check-urls-kick", False): event["channel"].send_kick(event["user"].nickname, "Don't send malicious URLs!") |
