]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/weather.rb
weather plugin: fix detection of weather page
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / weather.rb
index 47ab1ca259fe4f330a4bb32563b25770f8c689bd..4ff92769b5c710f87aaca7ebe3d031f21536be89 100644 (file)
@@ -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)