2016-10-05 21:28:26 +00:00
|
|
|
from constants import clientPackets
|
|
|
|
from objects import glob
|
|
|
|
|
|
|
|
def handle(userToken, packetData):
|
|
|
|
packetData = clientPackets.tournamentMatchInfoRequest(packetData)
|
|
|
|
matchID = packetData["matchID"]
|
2017-08-07 21:53:09 +00:00
|
|
|
if matchID not in glob.matches.matches or not userToken.tournament:
|
2016-10-05 21:28:26 +00:00
|
|
|
return
|
2017-12-21 17:58:56 +00:00
|
|
|
with glob.matches.matches[matchID] as m:
|
|
|
|
userToken.enqueue(m.matchDataCache)
|