From 48925c58c09f87c15a9136f676fec72ee492373d Mon Sep 17 00:00:00 2001 From: Nyo Date: Sun, 4 Sep 2016 17:59:12 +0200 Subject: [PATCH] .BANCHO. .FIX. Fix leave match right after joining --- events/joinMatchEvent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/events/joinMatchEvent.py b/events/joinMatchEvent.py index 9693cfa..7397e6a 100644 --- a/events/joinMatchEvent.py +++ b/events/joinMatchEvent.py @@ -19,7 +19,8 @@ def joinMatch(userToken, matchID, password, isPasswordHashed = False): userToken.stopSpectating() # Leave other matches - userToken.partMatch() + if userToken.matchID > -1 and userToken.matchID != matchID: + userToken.partMatch() # Get usertoken data userID = userToken.userID