.FIX. .BANCHO. Fix spectator listings.
This commit is contained in:
parent
ed96bdbc4b
commit
5d65fd4e23
|
@ -42,11 +42,11 @@ def handle(userToken, packetData):
|
||||||
targetToken.enqueue(serverPackets.channelJoinSuccess(userID, "#spectator"))
|
targetToken.enqueue(serverPackets.channelJoinSuccess(userID, "#spectator"))
|
||||||
|
|
||||||
# send fellowSpectatorJoined to all spectators
|
# send fellowSpectatorJoined to all spectators
|
||||||
for c in targetToken.spectators:
|
for spec in targetToken.spectators:
|
||||||
if c is not userID:
|
if spec is not userID:
|
||||||
targetToken.enqueue(serverPackets.fellowSpectatorJoined(c))
|
c = glob.tokens.getTokenFromUserID(spec)
|
||||||
specToken = glob.tokens.getTokenFromUserID(c)
|
userToken.enqueue(serverPackets.fellowSpectatorJoined(c.userID))
|
||||||
specToken.enqueue(serverPackets.fellowSpectatorJoined(userID))
|
c.enqueue(serverPackets.fellowSpectatorJoined(userID))
|
||||||
|
|
||||||
# Console output
|
# Console output
|
||||||
log.info("{} are spectating {}".format(username, userHelper.getUsername(packetData["userID"])))
|
log.info("{} are spectating {}".format(username, userHelper.getUsername(packetData["userID"])))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user