diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index 7e08d5d19..aab7885c5 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -147,7 +147,9 @@ class Web(callbacks.PluginRegexp): def getTitle(self, irc, url, raiseErrors): size = conf.supybot.protocols.http.peekSize() - (target, text) = utils.web.getUrlTargetAndContent(url, size=size) + timeout = self.registryValue('timeout') + (target, text) = utils.web.getUrlTargetAndContent(url, size=size, + timeout=timeout) try: text = text.decode(utils.web.getEncoding(text) or 'utf8', 'replace')