Web: Fix fetch. Use getUrl instead of getUrlFd.

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
Terje Hoås 2012-10-02 18:19:53 +02:00 committed by James McCoy
parent 295f9b1f0d
commit 2327317b33

View File

@ -239,8 +239,8 @@ class Web(callbacks.PluginRegexp):
timeout = self.registryValue('fetch.timeout') timeout = self.registryValue('fetch.timeout')
if timeout == 0: if timeout == 0:
timeout = None timeout = None
fd = utils.web.getUrlFd(url, timeout=timeout) s = utils.web.getUrl(url, timeout=timeout, size=max)
irc.reply(fd.read(max)) irc.reply(s)
fetch = wrap(fetch, ['url']) fetch = wrap(fetch, ['url'])
Class = Web Class = Web