.BANCHO. .FIX. Stop spectating only if user is spectating someone
This commit is contained in:
parent
d5c87ba51c
commit
31a78432bb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user