diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-08 23:57:53 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-08 23:57:53 +0000 |
commit | 60c45f4da1d3a299d61698cbf7a1cdd232e6133c (patch) | |
tree | 3b75d5abbd12b762f348b1aad7a44c07ee37b136 /data/rbot/plugins/weather.rb | |
parent | 9cd035d187a581446fd2cecd333fb214b1182ce8 (diff) |
weather plugin: fix detection of weather page
Diffstat (limited to 'data/rbot/plugins/weather.rb')
-rw-r--r-- | data/rbot/plugins/weather.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/weather.rb b/data/rbot/plugins/weather.rb index 47ab1ca2..4ff92769 100644 --- a/data/rbot/plugins/weather.rb +++ b/data/rbot/plugins/weather.rb @@ -192,7 +192,7 @@ class WeatherPlugin < Plugin m.reply "couldn't retrieve weather information, sorry" when /City Not Found/ m.reply "no such location found (#{where})" - when /<table/ + when /Current<\/a>/ data = "" xml.scan(/<table border.*?>(.*?)<\/table>/m).each do |match| data += wu_weather_filter(match.first) |