diff --git a/Server/Models/ServerCommunication.cs b/Server/Models/ServerCommunication.cs index ce6c70d..8bfdcc1 100644 --- a/Server/Models/ServerCommunication.cs +++ b/Server/Models/ServerCommunication.cs @@ -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) { if (l == lobby) { bool succ; - l.AddUser(username, out succ); + l.AddUser(user, out succ); if (!succ) { // TODO send lobby full message