From 7a831b0359f4762967ff4d70b2cbc498035eff42 Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Sat, 26 Sep 2015 21:30:49 +0200 Subject: [PATCH] Update sms.lua --- src/apps/sms.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/sms.lua b/src/apps/sms.lua index 8b758fc..0d5667f 100644 --- a/src/apps/sms.lua +++ b/src/apps/sms.lua @@ -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