iteration

This commit is contained in:
Layla 2023-10-08 05:44:23 -04:00
parent cba8b4089c
commit e6ed55bcc7

View File

@ -84,14 +84,14 @@ function split (inputstr, sep)
end end
function check_user_in_group(username, group) function check_user_in_group(username, group)
local data = { local package = {
["action"] = "check_group", ["action"] = "check_group",
["username"] = username, ["username"] = username,
["group"] = group ["group"] = group
} }
local authID = data[auth_server] local authID = data[auth_server]
rednet.send(authID, data, "auth") rednet.send(authID, package, "auth")
while true do while true do
id, msg = rednet.receive("auth") id, msg = rednet.receive("auth")