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)
{
if (l == lobby)
{
bool succ;
l.AddUser(username, out succ);
l.AddUser(user, out succ);
if (!succ)
{
// TODO send lobby full message