From 47ce5b8b38b099b08b5d7ea411f881a7aa886712 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Sat, 21 Nov 2015 19:25:17 +0100 Subject: [PATCH] Punkt und Komma gsub entfernt (weil Fehler) Pattern Fehler gefixt --- plugins/forecast.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/forecast.lua b/plugins/forecast.lua index 8e9ee23..ac587de 100644 --- a/plugins/forecast.lua +++ b/plugins/forecast.lua @@ -19,8 +19,8 @@ local function get_condition_symbol(weather, n) end local function get_temp(weather, n) - local day = string.gsub(round(weather.list[n].temp.day, 1), "%.", "%,") - local night = string.gsub(round(weather.list[n].temp.night, 1), "%.", "%,") + local day = (round(weather.list[n].temp.day, 1)) + local night = (round(weather.list[n].temp.night, 1)) local condition = weather.list[n].weather[1].description return '☀️ '..day..'°C | 🌙 '..night..'°C | '..condition end @@ -82,7 +82,7 @@ local function run(msg, matches) city = matches[2] end - if not tonumber(matches[1]) and matches[1] ~= '!/orecast' then + if not tonumber(matches[1]) and matches[1] ~= '/forecast' then city = matches[1] end