summaryrefslogtreecommitdiff
path: root/rbot/plugins/tube.rb
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-07-20 00:17:51 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-07-20 00:17:51 +0000
commit66d49005d6b359dabc8a48fccab9c860ef31f29b (patch)
tree2e30af35db41d368b999c26c965a0b475259242d /rbot/plugins/tube.rb
parentc48b4d6fb9312b66ca937028dcba97fc04c99b9b (diff)
Add new httputil object to the bot object, to be used by plugins etc that
wish to make http requests. It sets up all the proxies etc for them according to bot config.
Diffstat (limited to 'rbot/plugins/tube.rb')
-rw-r--r--rbot/plugins/tube.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbot/plugins/tube.rb b/rbot/plugins/tube.rb
index 0244df64..98b90c6c 100644
--- a/rbot/plugins/tube.rb
+++ b/rbot/plugins/tube.rb
@@ -20,7 +20,7 @@ class TubePlugin < Plugin
def check_tube(m, line)
begin
- tube_page = Utils.http_get("http://www.tfl.gov.uk/tfl/service_rt_tube.shtml")
+ tube_page = @bot.httputil.get(URI.parse("http://www.tfl.gov.uk/tfl/service_rt_tube.shtml"), 1, 1)
rescue URI::InvalidURIError, URI::BadURIError => e
m.reply "Cannot contact Tube Service Status page"
return