Attempt at making log printing prettier.
This commit is contained in:
parent
4385aa23a0
commit
9f6a4e5e1c
@ -100,7 +100,7 @@ end
|
||||
local function handleMessage(sender, type, data)
|
||||
|
||||
if type == LOG then
|
||||
print("[" .. sender .. "]: " .. data["log"] .. " : " .. (data["content"] and textutils.serialise(data["content"]) or ""))
|
||||
print("[" .. sender .. "]: " .. data["log"] .. " : " .. (data["content"]["n"] >= 1 and tostring(data["content"][1]) or ""))
|
||||
elseif type == REQUEST then
|
||||
handleRequest(sender, data["request"], data["content"])
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user