From f0615dfdc278f1e377f39b7de0be9dd38cbcddb1 Mon Sep 17 00:00:00 2001 From: Layla Manley Date: Sun, 8 Oct 2023 01:12:05 -0400 Subject: [PATCH] iteration --- lns.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lns.lua b/lns.lua index 714be45..5a40752 100644 --- a/lns.lua +++ b/lns.lua @@ -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