From 03298474779a2f432926e2b26a77d0ee78fefeee Mon Sep 17 00:00:00 2001 From: Giuseppe Guerra at an airport Date: Sat, 12 Aug 2017 08:56:39 +0200 Subject: [PATCH] Don't start spectating unexisting users if user id is negative --- events/startSpectatingEvent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/events/startSpectatingEvent.py b/events/startSpectatingEvent.py index 06ccd3f..626af73 100644 --- a/events/startSpectatingEvent.py +++ b/events/startSpectatingEvent.py @@ -11,6 +11,7 @@ def handle(userToken, packetData): # If the user id is less than 0, treat this as a stop spectating packet if packetData["userID"] < 0: userToken.stopSpectating() + return # Get host token targetToken = glob.tokens.getTokenFromUserID(packetData["userID"])