From 68305dc953e0ce43a73eca8c43db2a0a819746fc Mon Sep 17 00:00:00 2001 From: Akamaru Date: Thu, 12 Nov 2015 19:04:57 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20f=C3=BCr=20weather.lua?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (*** lua: plugins/weather.lua:23: invalid use of '%' in replacement string) --- plugins/weather.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/weather.lua b/plugins/weather.lua index f6abe28..e4e77ea 100644 --- a/plugins/weather.lua +++ b/plugins/weather.lua @@ -20,7 +20,7 @@ local function get_weather(location) else country = ' ('..weather.sys.country..')' end - local temperature = string.gsub(round(weather.main.temp, 1), "%.", "%,") + local temperature = round(weather.main.temp, 1) local temp = 'Wetter in '..city..country..':\n'..temperature..'°C' local conditions = ' | '..weather.weather[1].description if weather.weather[1].main == 'Clear' then