X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fweather.rb;h=36a5a88f4e78f4f15108c9bd1d32fd254e950214;hb=fc0c682cbf7a68b8ccd458ac776770fccf9e59f4;hp=9d2b8aed5e3c368b49b62e30a3f6511d3fa8e4cd;hpb=234270da7bf2757d84e12e4179a1b5227be56a13;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/weather.rb b/data/rbot/plugins/weather.rb index 9d2b8aed..36a5a88f 100644 --- a/data/rbot/plugins/weather.rb +++ b/data/rbot/plugins/weather.rb @@ -130,7 +130,9 @@ class WeatherPlugin < Plugin wu_units = String.new - case (units || @bot.config['weather.units']).to_sym + units = @bot.config['weather.units'] unless units + + case units.to_sym when :english, :metric wu_units = "_#{units}" when :both