nlist: some cleanup

This commit is contained in:
cora 2020-11-27 22:59:50 +01:00 committed by Schmappie Eldress
parent 46c9b4b5b6
commit 69ba983410

View File

@ -27,10 +27,12 @@ end)
function nlist.add(list,node)
if node == "" then mode=1 return end
local tb=nlist.get(list)
local str=''
for k,v in pairs(tb) do
str=str..','..v
if v == node then return end
end
local str=str..','..node
str=str..','..node
storage:set_string(list,str)
end