Fix all multi passwords being sent to each user in lobby

This commit is contained in:
goeo_ 2017-07-22 22:41:42 +02:00
parent cae82bd107
commit 8043d686c5

View File

@ -202,7 +202,9 @@ def createMatch(matchID):
# Get match binary data and build packet # Get match binary data and build packet
match = glob.matches.matches[matchID] 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 # TODO: Add match object argument to save some CPU
def updateMatch(matchID): def updateMatch(matchID):