Actually use sanitised url when getting <title>

This commit is contained in:
jesopo 2019-07-02 14:36:18 +01:00
parent df5f29f943
commit 1aab5c4c64

View file

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