From 50742d336c4ed99641a01ec3a6127b1f04048dc3 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 3 Sep 2019 12:07:27 +0100 Subject: [PATCH] also url_sanitise youtube urls found with argless !yt commands --- modules/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/youtube.py b/modules/youtube.py index 68819399..e9965c55 100644 --- a/modules/youtube.py +++ b/modules/youtube.py @@ -124,7 +124,7 @@ class Module(ModuleManager.BaseModule): search = event["args"] else: url = event["target"].buffer.find(REGEX_YOUTUBE) - url = url.match if url else None + url = utils.http.url_sanitise(url.match) if url else None if not url: safe_setting = event["target"].get_setting("youtube-safesearch", True)