diff --git a/plugins/rechner.lua b/plugins/rechner.lua index 65b9b81..8a69fcf 100644 --- a/plugins/rechner.lua +++ b/plugins/rechner.lua @@ -7,13 +7,12 @@ local function mathjs(exp) local b,c = http.request(url) local text = nil if c == 200 then - text = 'Ergebnis: '..string.gsub(b, "%.", "%,") + text = 'Ergebnis: '..b elseif c == 400 then text = b else - text = 'Unerwarteter Fehler\n' - ..'Ist api.mathjs.org erreichbar?' + text = 'Unerwarteter Fehler\nIst api.mathjs.org erreichbar?' end return text end