added something to the user

This commit is contained in:
Lars
2020-10-19 23:07:48 +02:00
parent f5c67fc2da
commit f1901f0c35

View File

@@ -117,14 +117,14 @@ namespace Server.Models
} }
} }
public void AddToLobby(Lobby lobby, string username) public void AddToLobby(Lobby lobby, User user)
{ {
foreach (Lobby l in lobbies) foreach (Lobby l in lobbies)
{ {
if (l == lobby) if (l == lobby)
{ {
bool succ; bool succ;
l.AddUser(username, out succ); l.AddUser(user, out succ);
if (!succ) if (!succ)
{ {
// TODO send lobby full message // TODO send lobby full message