From accf1a07d45b90a44237fb3ab24e0920b4e50391 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 1 Apr 2008 15:27:56 +0200 Subject: weather plugin: don't break when there aren't advisories --- data/rbot/plugins/weather.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data/rbot/plugins') diff --git a/data/rbot/plugins/weather.rb b/data/rbot/plugins/weather.rb index a3550fb9..467d39e3 100644 --- a/data/rbot/plugins/weather.rb +++ b/data/rbot/plugins/weather.rb @@ -270,8 +270,9 @@ class WeatherPlugin < Plugin def wu_out_special(m, xml) return unless @bot.config['weather.advisory'] - special = wu_check_special(xml).merge(:underline => Underline) + special = wu_check_special(xml) if special + special.merge!(:underline => Underline) if special[:text] m.reply("%{underline}%{special}%{underline}: %{text}" % special) else -- cgit v1.2.3