From 19c4c32c7b44c9c98510825f36f5b79d0a2b3e43 Mon Sep 17 00:00:00 2001 From: Nyo Date: Sun, 4 Sep 2016 16:29:36 +0200 Subject: [PATCH] .BANCHO. .FIX. Fix actions contants names --- events/changeActionEvent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events/changeActionEvent.py b/events/changeActionEvent.py index e9559bf..7b156d7 100644 --- a/events/changeActionEvent.py +++ b/events/changeActionEvent.py @@ -24,11 +24,11 @@ def handle(userToken, packetData): packetData = clientPackets.userActionChange(packetData) # If we are not in spectate status but we're spectating someone, stop spectating - if userToken.spectating != 0 and userToken.actionID != actions.watching and userToken.actionID != actions.idle and userToken.actionID != actions.afk: + if userToken.spectating != 0 and userToken.actionID != actions.WATCHING and userToken.actionID != actions.IDLE and userToken.actionID != actions.AFK: userToken.stopSpectating() # If we are not in multiplayer but we are in a match, part match - if userToken.matchID != -1 and userToken.actionID != actions.multiplaying and userToken.actionID != actions.multiplayer and userToken.actionID != actions.afk: + if userToken.matchID != -1 and userToken.actionID != actions.MULTIPLAYING and userToken.actionID != actions.MULTIPLAYER and userToken.actionID != actions.AFK: userToken.partMatch() # Update cached stats if our pp changedm if we've just submitted a score or we've changed gameMode