summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/weather.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-01 15:27:56 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-01 16:20:23 +0200
commitaccf1a07d45b90a44237fb3ab24e0920b4e50391 (patch)
treeb3abf55710a07277d4dc183c65c6d6aac6f157a1 /data/rbot/plugins/weather.rb
parent5d81bc45965a2cda327410b058a7d0d3f4eafb52 (diff)
weather plugin: don't break when there aren't advisories
Diffstat (limited to 'data/rbot/plugins/weather.rb')
-rw-r--r--data/rbot/plugins/weather.rb3
1 files changed, 2 insertions, 1 deletions
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