iteration
This commit is contained in:
		@ -109,15 +109,19 @@ while true do
 | 
				
			|||||||
            rednet.send(client_id, "invalid request", "auth")
 | 
					            rednet.send(client_id, "invalid request", "auth")
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            local found = false
 | 
				
			||||||
            for user, userdata in pairs(data.users) do
 | 
					            for user, userdata in pairs(data.users) do
 | 
				
			||||||
                if userdata.token == request.token then
 | 
					                if userdata.token == request.token then
 | 
				
			||||||
                    rednet.send(client_id, user, "auth")
 | 
					                    rednet.send(client_id, user, "auth")
 | 
				
			||||||
 | 
					                    found = true
 | 
				
			||||||
                end
 | 
					                end
 | 
				
			||||||
            end
 | 
					            end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            if not found then
 | 
				
			||||||
                rednet.send(client_id, "invalid token", "auth")
 | 
					                rednet.send(client_id, "invalid token", "auth")
 | 
				
			||||||
            end
 | 
					            end
 | 
				
			||||||
        end
 | 
					        end
 | 
				
			||||||
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if request.action == "profile" then
 | 
					    if request.action == "profile" then
 | 
				
			||||||
        if request.username == nil then
 | 
					        if request.username == nil then
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user