diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index 00cd104e7..0d907ac3b 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -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