summaryrefslogtreecommitdiff
path: root/rbot/plugins/slashdot.rb
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-07-21 11:03:46 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-07-21 11:03:46 +0000
commitca4b8b57bd382ca4619cac1157f14ea0e396cc55 (patch)
tree658d5c63d48db28ac287c1d973fe88320ad3b0ac /rbot/plugins/slashdot.rb
parente3c4d9ad30b8548c09dd7d26abdfeef223c23f40 (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/slashdot.rb')
-rw-r--r--rbot/plugins/slashdot.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbot/plugins/slashdot.rb b/rbot/plugins/slashdot.rb
index bc0a047e..38005bde 100644
--- a/rbot/plugins/slashdot.rb
+++ b/rbot/plugins/slashdot.rb
@@ -24,7 +24,7 @@ class SlashdotPlugin < Plugin
def search_slashdot(m, search, max=4)
begin
- xml = Utils.http_get("http://slashdot.org/search.pl?content_type=rss&query=#{URI.escape(search)}")
+ xml = @bot.httputil.get(URI.parse("http://slashdot.org/search.pl?content_type=rss&query=#{URI.escape(search)}"))
rescue URI::InvalidURIError, URI::BadURIError => e
m.reply "illegal search string #{search}"
return
@@ -51,7 +51,7 @@ class SlashdotPlugin < Plugin
end
def slashdot(m, max=4)
- xml = Utils.http_get("http://slashdot.org/slashdot.xml")
+ xml = @bot.httputil.get(URI.parse("http://slashdot.org/slashdot.xml"))
unless xml
m.reply "slashdot news parse failed"
return