diff options
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!") |
