1
0
Fork 0
mirror of https://github.com/besterprotocol/besterd synced 2023-12-13 21:00:32 +01:00

WIP: Authenticated user matching

This commit is contained in:
Tristan B. Kildaire 2020-04-25 20:30:49 +02:00
parent e5aa908489
commit 2c4940af44

View file

@ -38,7 +38,22 @@ public final class BesterServer
for(ulong i = 0; i < clients.length; i++)
{
/* TODO: Implement me */
/* The potentially-matched user */
BesterConnection potentialMatch = clients[i];
/* Check if the user is authenticated */
if(potentialMatch.isUser())
{
for(ulong k = 0; k < usernames.length; k++)
{
/* TODO: Implement check here */
}
}
else
{
/* TODO: Debug print */
debugPrint("Skipping unauthenticated user \"" ~ potentialMatch.getCredentials()[0] ~ "\"");
}
}
return matchedUsers;