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