mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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')
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user