From ca4b8b57bd382ca4619cac1157f14ea0e396cc55 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Thu, 21 Jul 2005 11:03:46 +0000 Subject: Wed Jul 20 23:30:01 BST 2005 Tom Gilbert * Move some core plugins to use the new httputil * fix wserver's redirection handling for relative (i.e. broken) redirects * fix tube plugin's html parsing --- rbot/plugins/freshmeat.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rbot/plugins/freshmeat.rb') diff --git a/rbot/plugins/freshmeat.rb b/rbot/plugins/freshmeat.rb index 63eaf4c6..420c1bcb 100644 --- a/rbot/plugins/freshmeat.rb +++ b/rbot/plugins/freshmeat.rb @@ -25,7 +25,7 @@ class FreshmeatPlugin < Plugin def search_freshmeat(m, search, max=4) max = 8 if max > 8 begin - xml = Utils.http_get("http://freshmeat.net/search-xml/?orderby=locate_projectname_full_DESC&q=#{URI.escape(search)}") + xml = @bot.httputil.get(URI.parse("http://freshmeat.net/search-xml/?orderby=locate_projectname_full_DESC&q=#{URI.escape(search)}")) rescue URI::InvalidURIError, URI::BadURIError => e m.reply "illegal search string #{search}" return @@ -70,7 +70,7 @@ class FreshmeatPlugin < Plugin def freshmeat(m, max=4) max = 8 if max > 8 - xml = Utils.http_get("http://images.feedstermedia.com/feedcache/ostg/freshmeat/fm-releases-global.xml") + xml = @bot.httputil.get(URI.parse("http://images.feedstermedia.com/feedcache/ostg/freshmeat/fm-releases-global.xml")) unless xml m.reply "freshmeat news parse failed" return -- cgit v1.2.3