mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +01:00
Merge pull request #411 from Hoaas/testing
Web: Fix fetch. Use getUrl instead of getUrlFd.
This commit is contained in:
commit
1fc11d0cea
@ -253,9 +253,9 @@ class Web(callbacks.PluginRegexp):
|
|||||||
irc.error(_('This command is disabled '
|
irc.error(_('This command is disabled '
|
||||||
'(supybot.plugins.Web.fetch.maximum is set to 0).'),
|
'(supybot.plugins.Web.fetch.maximum is set to 0).'),
|
||||||
Raise=True)
|
Raise=True)
|
||||||
fd = utils.web.getUrlFd(url) \
|
fd = utils.web.getUrl(url, size=max) \
|
||||||
.decode('utf8')
|
.decode('utf8')
|
||||||
irc.reply(fd.read(max))
|
irc.reply(fd)
|
||||||
fetch = wrap(fetch, ['url'])
|
fetch = wrap(fetch, ['url'])
|
||||||
|
|
||||||
Class = Web
|
Class = Web
|
||||||
|
Loading…
Reference in New Issue
Block a user