Fix wrong variable names
This commit is contained in:
parent
ffc84448a2
commit
e2149d7d61
|
@ -5,7 +5,7 @@ from helpers import chatHelper as chat
|
|||
def handle(userToken, packetData):
|
||||
packetData = clientPackets.tournamentJoinMatchChannel(packetData)
|
||||
matchID = packetData["matchID"]
|
||||
if matchID not in glob.matches.matches or not userToken.isTourney:
|
||||
if matchID not in glob.matches.matches or not userToken.tournament:
|
||||
return
|
||||
userToken.matchID = matchID
|
||||
chat.joinChannel(token=userToken, channel="#multi_{}".format(matchID))
|
|
@ -5,7 +5,7 @@ from helpers import chatHelper as chat
|
|||
def handle(userToken, packetData):
|
||||
packetData = clientPackets.tournamentLeaveMatchChannel(packetData)
|
||||
matchID = packetData["matchID"]
|
||||
if matchID not in glob.matches.matches or not userToken.isTourney:
|
||||
if matchID not in glob.matches.matches or not userToken.tournament:
|
||||
return
|
||||
chat.partChannel(token=userToken, channel="#multi_{}".format(matchID))
|
||||
userToken.matchID = 0
|
|
@ -4,6 +4,6 @@ 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.isTourney:
|
||||
if matchID not in glob.matches.matches or not userToken.tournament:
|
||||
return
|
||||
userToken.enqueue(glob.matches.matches[matchID].matchDataCache)
|
Loading…
Reference in New Issue
Block a user