From e2149d7d615868b635a026d8101924cc956f9a91 Mon Sep 17 00:00:00 2001 From: Giuseppe Guerra Date: Mon, 7 Aug 2017 23:53:09 +0200 Subject: [PATCH] Fix wrong variable names --- events/tournamentJoinMatchChannelEvent.py | 2 +- events/tournamentLeaveMatchChannelEvent.py | 2 +- events/tournamentMatchInfoRequestEvent.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/events/tournamentJoinMatchChannelEvent.py b/events/tournamentJoinMatchChannelEvent.py index 74b7296..f9bcca1 100644 --- a/events/tournamentJoinMatchChannelEvent.py +++ b/events/tournamentJoinMatchChannelEvent.py @@ -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)) \ No newline at end of file diff --git a/events/tournamentLeaveMatchChannelEvent.py b/events/tournamentLeaveMatchChannelEvent.py index 4cd80f8..981f2bb 100644 --- a/events/tournamentLeaveMatchChannelEvent.py +++ b/events/tournamentLeaveMatchChannelEvent.py @@ -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 \ No newline at end of file diff --git a/events/tournamentMatchInfoRequestEvent.py b/events/tournamentMatchInfoRequestEvent.py index fe09188..43011ea 100644 --- a/events/tournamentMatchInfoRequestEvent.py +++ b/events/tournamentMatchInfoRequestEvent.py @@ -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) \ No newline at end of file