.BANCHO. .FIX. Stop spectating only if user is spectating someone

This commit is contained in:
Nyo
2016-09-04 12:42:14 +02:00
parent d5c87ba51c
commit 31a78432bb
2 changed files with 2 additions and 3 deletions

View File

@@ -146,6 +146,8 @@ class token:
def stopSpectating(self):
# Remove our userID from host's spectators
target = self.spectating
if self.spectating == 0:
return
targetToken = glob.tokens.getTokenFromUserID(target)
if targetToken is not None:
# Remove us from host's spectators list