Update sms.lua

This commit is contained in:
Ale32bit 2015-11-01 18:23:07 +01:00
parent fc603a55c9
commit 5e979d98fd

View file

@ -90,14 +90,23 @@ local function readMsg()
term.setTextColor(colors.white) term.setTextColor(colors.white)
term.clear() term.clear()
term.setCursorPos(1,1) term.setCursorPos(1,1)
if not getAllSMS then
term.write("Send: ") term.write("Send: ")
else
term.write("Enter to exit")
term.setCursorBlink(false)
end
if not getAllSMS then if not getAllSMS then
local msg = read() local msg = read()
else else
term.write("Disabled")
sleep(100) _,c = os.pullEvent("key")
if c == keys.enter then
local msg = "/logout"
else
local msg = "" local msg = ""
end end
end
local msg = base64.encode(msg) local msg = base64.encode(msg)
term.clear() term.clear()
if base64.decode(msg) == "/logout" then if base64.decode(msg) == "/logout" then