From cb623b2f4e479a5784460bc4d30c64b61cb172c5 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. --- 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 b15a18f0e..2b943e85d 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -253,9 +253,9 @@ class Web(callbacks.PluginRegexp): irc.error(_('This command is disabled ' '(supybot.plugins.Web.fetch.maximum is set to 0).'), Raise=True) - fd = utils.web.getUrlFd(url) \ + fd = utils.web.getUrl(url, size=max) \ .decode('utf8') - irc.reply(fd.read(max)) + irc.reply(fd) fetch = wrap(fetch, ['url']) Class = Web