From 1965853444ab0a396853370de134b64249764d9f Mon Sep 17 00:00:00 2001 From: Akamaru Date: Tue, 1 Dec 2015 20:52:20 +0100 Subject: [PATCH] rechner.lua: Fehler bei , und . behoben --- plugins/rechner.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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