diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-04 14:35:34 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-04 14:35:34 +0000 |
commit | 1974a4f0d4a6b5634fab6a57277f18a9684334f4 (patch) | |
tree | cb3f310783eec8211289a56c3b5aec5849099888 | |
parent | 8a5ebf89685fb4fd75a6480d2e750db315780644 (diff) |
Weather plugin fixups
-rw-r--r-- | data/rbot/plugins/weather.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/data/rbot/plugins/weather.rb b/data/rbot/plugins/weather.rb index 7a48ef23..036fbbdd 100644 --- a/data/rbot/plugins/weather.rb +++ b/data/rbot/plugins/weather.rb @@ -112,6 +112,7 @@ class WeatherPlugin < Plugin if loc.empty? debug "No weather location found for #{m.sourcenick}" m.reply "I don't know where you are yet, #{m.sourcenick}. See 'help weather nws' or 'help weather wu' for additional help" + return end case service when :nws @@ -149,6 +150,9 @@ class WeatherPlugin < Plugin when nil m.reply "couldn't retrieve weather information, sorry" return + when /Search not found:/ + m.reply "no such station found (#{where})" + return when /<table border.*?>(.*?)<\/table>/m data = $1 m.reply wu_weather_filter(data) |