X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Ftube.rb;h=bbae5c59684bbb82b0cf78a425082d956a00238d;hb=052217de30c59206d7025b582d4604557a747470;hp=1380550286e82cefb74db79e56f3cb825f55834f;hpb=68ec8db1b2a05eb033346bf7c3247a52fa1bf4b6;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/tube.rb b/data/rbot/plugins/tube.rb index 13805502..bbae5c59 100644 --- a/data/rbot/plugins/tube.rb +++ b/data/rbot/plugins/tube.rb @@ -5,7 +5,7 @@ class TubePlugin < Plugin def help(plugin, topic="") "tube [district|circle|metropolitan|central|jubilee|bakerloo|waterlooandcity|hammersmithandcity|victoria|eastlondon|northern|piccadilly] => display tube service status for the specified line(Docklands Light Railway is not currently supported)" # , tube stations => list tube stations (not lines) with problems" end - + def tube(m, params) line = params[:line] tube_page = @bot.httputil.get('http://www.tfl.gov.uk/tfl/livetravelnews/realtime/tube/default.html') @@ -45,7 +45,7 @@ class TubePlugin < Plugin stations_array.push $1 end } - if stations_array.empty? + if stations_array.empty? m.reply "There are no station-specific announcements" return else