From 1b438f014256ec9733ac2f113bc1f0a922a6b7a4 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Mon, 22 Aug 2016 22:11:23 +0200 Subject: [PATCH] Etwas Markdown in shell.lua --- miku/plugins/shell.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/miku/plugins/shell.lua b/miku/plugins/shell.lua index 52f1464..edc5ccd 100644 --- a/miku/plugins/shell.lua +++ b/miku/plugins/shell.lua @@ -39,9 +39,9 @@ function shell:action(msg, config, matches) if msg.text:match('^/[Uu][Pp][Tt][Ii][Mm][Ee]$') then local cmd = run_command('uptime -s && uptime -p') - local text1 = 'Der PC ist seit dem '..makeOurDate(string.match(cmd, '(%d+-%d+-%d+)'))..' an.' - local text2 = shell:transeng('Das sind '..string.match(cmd, 'up (.*)')) - utilities.send_reply(self, msg, text1..'\n'..text2) + local text1 = 'Der PC ist seit dem '..makeOurDate(string.match(cmd, '(%d+-%d+-%d+)'))..' an.' + local text2 = shell:transeng('Das sind '..string.match(cmd, 'up (.*)')..'') + utilities.send_reply(self, msg, text1..'\n'..text2, 'HTML') return end @@ -61,8 +61,8 @@ function shell:action(msg, config, matches) if msg.text:match('^/[Cc][Hh][Ee][Cc][Kk]$') then local cmd = run_command("apt --just-print upgrade") - local text = 'Es gibt '..string.match(cmd, '(%d+) aktualisiert')..' Updates' - utilities.send_reply(self, msg, text) + local text = 'Es gibt '..string.match(cmd, '(%d+) aktualisiert')..' Updates' + utilities.send_reply(self, msg, text, 'HTML') return end