Update sms.lua
This commit is contained in:
parent
d2fa5153e7
commit
7a831b0359
1 changed files with 2 additions and 1 deletions
|
@ -88,6 +88,7 @@ local function readMsg()
|
|||
term.setCursorPos(1,1)
|
||||
term.write("Send: ")
|
||||
local msg = read()
|
||||
local msg = base64.encode(msg)
|
||||
term.clear()
|
||||
if msg == "/logout" then
|
||||
term.redirect(mainTerm)
|
||||
|
@ -148,7 +149,7 @@ local function recMsg()
|
|||
t = textutils.unserialize(v)
|
||||
if t then
|
||||
date = t["date"]
|
||||
mesg = "<"..t["from"].."> "..t["message"]
|
||||
mesg = "<"..t["from"].."> "..base64.decode(t["message"])
|
||||
printMsg(mesg)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue