use utils.http.url_sanitise() in title.py

This commit is contained in:
jesopo 2019-07-02 14:16:16 +01:00
parent 637067c62c
commit df5f29f943

View file

@ -51,7 +51,7 @@ class Module(ModuleManager.BaseModule):
def channel_message(self, event):
if event["target"].get_setting("auto-title", False):
event.eat()
url = event["match"].group(0)
url = utils.http.url_sanitise(event["match"].group(0))
title = self._get_title(event["server"], event["target"],
event["match"].group(0))