2016-10-05 21:28:26 +00:00
|
|
|
from constants import clientPackets
|
|
|
|
from constants import serverPackets
|
|
|
|
from objects import glob
|
|
|
|
|
|
|
|
def handle(userToken, packetData):
|
|
|
|
packetData = clientPackets.tournamentMatchInfoRequest(packetData)
|
|
|
|
matchID = packetData["matchID"]
|
|
|
|
if matchID not in glob.matches.matches:
|
|
|
|
return
|
2016-10-08 18:18:33 +00:00
|
|
|
userToken.enqueue(glob.matches.matches[matchID].matchDataCache)
|