From 1974a4f0d4a6b5634fab6a57277f18a9684334f4 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 4 Feb 2007 14:35:34 +0000 Subject: Weather plugin fixups --- data/rbot/plugins/weather.rb | 4 ++++ 1 file changed, 4 insertions(+) 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>/m data = $1 m.reply wu_weather_filter(data) -- cgit v1.2.3