Removed private matches from discord msg

This commit is contained in:
ZKWolf 2024-07-29 19:59:34 +02:00
parent 13051e6701
commit 683be90c2b

View File

@ -524,7 +524,9 @@ class MatchmakingQueue:
lobby.host = userId
lobby.isReady = True
lobby.SessionSettings = sessionSettings
return self.createMatchResponse(matchId=matchId, userId=userId)
if lobby.is_private:
return self.createMatchResponse(matchId=matchId, userId=userId), True
return self.createMatchResponse(matchId=matchId, userId=userId), False
def closeMatch(self, matchId):
lobby, _ = self.getLobbyById(matchId)