[ADD] added host user check to join

This commit is contained in:
Sem van der Hoeven
2020-10-22 13:13:57 +02:00
parent b08e6cc749
commit 471247827b

View File

@@ -207,6 +207,10 @@ namespace Server.Models
{
if (l.ID == id)
{
if (l.Users.Count == 0)
{
user.Host = true;
}
AddToLobby(l, user);
Debug.WriteLine($"{user.Username} joined lobby with id {id}");
break;