pep.py/events/tournamentMatchInfoRequestEvent.py
2017-08-07 23:53:09 +02:00

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)