mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Web: Fix fetch. Use getUrl instead of getUrlFd.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
parent
295f9b1f0d
commit
2327317b33
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user