From 2327317b33215ff1767ff0768bca84e15c3c5174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20Ho=C3=A5s?= Date: Tue, 2 Oct 2012 18:19:53 +0200 Subject: [PATCH] Web: Fix fetch. Use getUrl instead of getUrlFd. Signed-off-by: James McCoy --- plugins/Web/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index 00cd104e7..0d907ac3b 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -239,8 +239,8 @@ class Web(callbacks.PluginRegexp): timeout = self.registryValue('fetch.timeout') if timeout == 0: timeout = None - fd = utils.web.getUrlFd(url, timeout=timeout) - irc.reply(fd.read(max)) + s = utils.web.getUrl(url, timeout=timeout, size=max) + irc.reply(s) fetch = wrap(fetch, ['url']) Class = Web