summaryrefslogtreecommitdiff
path: root/rbot/plugins/tube.rb
diff options
context:
space:
mode:
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