From 4d3a67fe5f181ad04bd7b04106a91792c009871d Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Fri, 26 Aug 2016 17:42:40 +0200 Subject: [PATCH] Luarun-Fix 2 --- otouto/plugins/luarun.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/otouto/plugins/luarun.lua b/otouto/plugins/luarun.lua index eb8f206..e6c40ca 100644 --- a/otouto/plugins/luarun.lua +++ b/otouto/plugins/luarun.lua @@ -23,7 +23,7 @@ function luarun:action(msg, config) local input = utilities.input(msg.text) if not input then - utilities.send_reply(self, msg, 'Bitte gebe einen Befehl ein.') + utilities.send_reply(msg, 'Bitte gebe einen Befehl ein.') return end @@ -39,8 +39,8 @@ function luarun:action(msg, config) local URL = require('socket.url') local http = require('socket.http') local https = require('ssl.https') - return function (self, msg, config) ]] .. input .. [[ end - ]] )()(self, msg, config) + return function (msg, config) ]] .. input .. [[ end + ]] )()(msg, config) if output == nil then output = 'Ausgeführt!' else @@ -52,7 +52,7 @@ function luarun:action(msg, config) end output = '```\n' .. tostring(output) .. '\n```' end - utilities.send_message(self, msg.chat.id, output, true, msg.message_id, true) + utilities.send_message(msg.chat.id, output, true, msg.message_id, true) end