pep.py/events/tournamentMatchInfoRequestEvent.py
2016-12-26 10:33:05 +01:00

9 lines
311 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:
return
userToken.enqueue(glob.matches.matches[matchID].matchDataCache)