Update sms.lua

This commit is contained in:
Ale32bit 2015-11-01 20:47:44 +01:00
parent a9b16c6108
commit 9399455424

View file

@ -54,6 +54,9 @@ while true do
else else
sendTo = tArgs[1] sendTo = tArgs[1]
end end
if sendTo == "" then
local getAllSMS = true
end
local doesUserExist = http.post(server.."exists.php", "user="..sendTo).readAll() local doesUserExist = http.post(server.."exists.php", "user="..sendTo).readAll()
if doesUserExist ~= "true" then if doesUserExist ~= "true" then
sPhone.winOk(sendTo.." does","not exist!", colors.lime, colors.green, colors.white, colors.lime) sPhone.winOk(sendTo.." does","not exist!", colors.lime, colors.green, colors.white, colors.lime)
@ -71,9 +74,6 @@ while true do
return return
end end
end end
if sendTo == "" then
local getAllSMS = true
end
term.clear() term.clear()
local x,y = term.getSize() local x,y = term.getSize()
local mainTerm = term.current() local mainTerm = term.current()