Skip to content

Commit

Permalink
Web: Fix fetch. Use getUrl instead of getUrlFd.
Browse files Browse the repository at this point in the history
  • Loading branch information
Terje Hoås committed Oct 2, 2012
1 parent 784b8c3 commit cb623b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/Web/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ def fetch(self, irc, msg, args, url):
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
Expand Down

0 comments on commit cb623b2

Please sign in to comment.