X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=data%2Frbot%2Fplugins%2Fweather.rb;h=cda68e102e5d0567299bd6a52724edc642967d0a;hb=7d2f6b2aa00632f55df231c72cec7661af8845f1;hp=0d3abee27071cfc61de190ba0c47ef7dc7f92da2;hpb=3e96282cc12d4aacfce314a954ca602f0d89b92a;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/weather.rb b/data/rbot/plugins/weather.rb index 0d3abee2..cda68e10 100644 --- a/data/rbot/plugins/weather.rb +++ b/data/rbot/plugins/weather.rb @@ -17,7 +17,7 @@ require 'rexml/document' class CurrentConditions def initialize(station) @station = station - @url = "http://www.nws.noaa.gov/data/current_obs/#{@station.upcase}.xml" + @url = "http://www.nws.noaa.gov/data/current_obs/#{URI.encode @station.upcase}.xml" @etag = String.new @mtime = Time.mktime(0) @current_conditions = String.new