From 8043d686c5d7859edf3d93c63955964ae052b8e6 Mon Sep 17 00:00:00 2001 From: goeo_ Date: Sat, 22 Jul 2017 22:41:42 +0200 Subject: [PATCH] Fix all multi passwords being sent to each user in lobby --- constants/serverPackets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/constants/serverPackets.py b/constants/serverPackets.py index 4756e8c..f8eb309 100644 --- a/constants/serverPackets.py +++ b/constants/serverPackets.py @@ -202,7 +202,9 @@ def createMatch(matchID): # Get match binary data and build packet match = glob.matches.matches[matchID] - return packetHelper.buildPacket(packetIDs.server_newMatch, match.getMatchData()) + matchData = match.getMatchData() + matchData.matchPassword = "" + return packetHelper.buildPacket(packetIDs.server_newMatch, matchData) # TODO: Add match object argument to save some CPU def updateMatch(matchID):