From 2c089e472e831448a7231db51829455ea603b10e Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Sun, 17 Jul 2016 17:45:20 +0200 Subject: [PATCH] =?UTF-8?q?-=20Bold=20als=20Pattern=20f=C3=BCr=20echo=20In?= =?UTF-8?q?line=20-=20Fix=20Calc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- otouto/plugins/calc.lua | 2 +- otouto/plugins/echo.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/otouto/plugins/calc.lua b/otouto/plugins/calc.lua index f43adf7..169acce 100644 --- a/otouto/plugins/calc.lua +++ b/otouto/plugins/calc.lua @@ -15,7 +15,7 @@ function calc:init(config) end function calc:mathjs(exp) - local exp = string.gsub(exp, ",", "%.") + local exp = string.gsub(exp, ",", ".") local url = 'http://api.mathjs.org/v1/' url = url..'?expr='..URL.escape(exp) local b,c = http.request(url) diff --git a/otouto/plugins/echo.lua b/otouto/plugins/echo.lua index b59133d..7018ac8 100644 --- a/otouto/plugins/echo.lua +++ b/otouto/plugins/echo.lua @@ -7,7 +7,8 @@ echo.command = 'echo ' function echo:init(config) echo.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('echo', true).table echo.inline_triggers = { - "^e (.*)" + "^e (.+)", + "^bold (.+)" } echo.doc = [[* ]]..config.cmd_pat..[[echo* __: Gibt den Text aus]]