From 683be90c2b3d4323269ca64df618588cedbc6c4b Mon Sep 17 00:00:00 2001 From: ZKWolf <34097612+wolfswolke@users.noreply.github.com> Date: Mon, 29 Jul 2024 19:59:34 +0200 Subject: [PATCH] Removed private matches from discord msg --- src/logic/queue_handler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/logic/queue_handler.py b/src/logic/queue_handler.py index 30120e5..1ca0d0d 100644 --- a/src/logic/queue_handler.py +++ b/src/logic/queue_handler.py @@ -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)