.BANCHO. .FIX. Remove extra fellow spectators packets
This commit is contained in:
		@@ -44,7 +44,7 @@ def handle(userToken, packetData):
 | 
				
			|||||||
		# send fellowSpectatorJoined to all spectators
 | 
							# send fellowSpectatorJoined to all spectators
 | 
				
			||||||
		for c in targetToken.spectators:
 | 
							for c in targetToken.spectators:
 | 
				
			||||||
			if c is not userID:
 | 
								if c is not userID:
 | 
				
			||||||
				targetToken.enqueue(serverPackets.fellowSpectatorJoined(c))
 | 
									#targetToken.enqueue(serverPackets.fellowSpectatorJoined(c))
 | 
				
			||||||
				specToken = glob.tokens.getTokenFromUserID(c)
 | 
									specToken = glob.tokens.getTokenFromUserID(c)
 | 
				
			||||||
				specToken.enqueue(serverPackets.fellowSpectatorJoined(userID))
 | 
									specToken.enqueue(serverPackets.fellowSpectatorJoined(userID))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,7 +22,7 @@ def handle(userToken, _):
 | 
				
			|||||||
			spec = glob.tokens.getTokenFromUserID(c)
 | 
								spec = glob.tokens.getTokenFromUserID(c)
 | 
				
			||||||
			spec.enqueue(serverPackets.fellowSpectatorLeft(userID))
 | 
								spec.enqueue(serverPackets.fellowSpectatorLeft(userID))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		targetToken.enqueue(serverPackets.fellowSpectatorLeft(userID))
 | 
							#targetToken.enqueue(serverPackets.fellowSpectatorLeft(userID))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		# Console output
 | 
							# Console output
 | 
				
			||||||
		# TODO: Move messages in stop spectating
 | 
							# TODO: Move messages in stop spectating
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user