function authorise(request)
players = fs.open("disk/allowed","r")
for player in players:lines() do
if request == player then
return true
else
return false
end
end
end
You check the first line of the file, and if it matches return true, if it doesn't returns false without checking the other lines.Change it to this and it should work:
function authorise(request)
players = fs.open("disk/allowed","r")
for player in players:lines() do
if request == player then
return true
end
end
return false
end


Posted by

