9 lines
339 B
Python
9 lines
339 B
Python
from constants import clientPackets
|
|
from objects import glob
|
|
|
|
def handle(userToken, packetData):
|
|
packetData = clientPackets.tournamentMatchInfoRequest(packetData)
|
|
matchID = packetData["matchID"]
|
|
if matchID not in glob.matches.matches or not userToken.tournament:
|
|
return
|
|
userToken.enqueue(glob.matches.matches[matchID].matchDataCache) |