summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-11-08 23:57:53 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-11-08 23:57:53 +0000
commit60c45f4da1d3a299d61698cbf7a1cdd232e6133c (patch)
tree3b75d5abbd12b762f348b1aad7a44c07ee37b136
parent9cd035d187a581446fd2cecd333fb214b1182ce8 (diff)
weather plugin: fix detection of weather page
-rw-r--r--data/rbot/plugins/weather.rb2
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)