iteration

This commit is contained in:
Layla 2023-10-08 01:12:05 -04:00
parent 8068b1dcd0
commit f0615dfdc2

View File

@ -15,7 +15,7 @@ function lns_lookup(hostname)
lns_server_id = rednet.lookup("lns", lns_server)
if lns_server_id == nil then
io.write("LNS Server not found!\n")
return
return nil
end
end
@ -52,9 +52,9 @@ if action == "lookup" then
end
local id = lns_lookup(hostname)
cache[hostname] = id
if id ~= nil then
io.write(id)
cache[hostname] = id
end
elseif action == "clear" then