From b6c7d23a13b5df164360741c16e672535c7b36aa Mon Sep 17 00:00:00 2001 From: erius0 <63460770+erius0@users.noreply.github.com> Date: Fri, 8 Jan 2021 17:49:01 +0300 Subject: [PATCH] Update linkedGet.lua --- linkedGet.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/linkedGet.lua b/linkedGet.lua index 57c1f04..0128b54 100644 --- a/linkedGet.lua +++ b/linkedGet.lua @@ -48,13 +48,12 @@ end while true do local _, _, from, _, _, message = event.pull("modem_message") - local answer = handleMessage(tostring(message)) + local result = handleMessage(tostring(message)) local time = getTime() local user = getUser(tostring(from)) - local log = "["..time.."] "..user..": "..message.."\n".."["..time.."] "..answer + local log = "["..time.."] "..user..": "..message.."\n".."["..time.."] "..result print(log) local f = io.open("logs.txt", "a") f:write(log.."\n") f:close() - tunnel.send(from, answer) end