diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-21 11:03:46 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-21 11:03:46 +0000 |
commit | ca4b8b57bd382ca4619cac1157f14ea0e396cc55 (patch) | |
tree | 658d5c63d48db28ac287c1d973fe88320ad3b0ac /rbot/plugins/freshmeat.rb | |
parent | e3c4d9ad30b8548c09dd7d26abdfeef223c23f40 (diff) |
Wed Jul 20 23:30:01 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>
* 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
Diffstat (limited to 'rbot/plugins/freshmeat.rb')
-rw-r--r-- | rbot/plugins/freshmeat.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |