diff --git a/events/loginEvent.py b/events/loginEvent.py index 2316331..9ff591a 100644 --- a/events/loginEvent.py +++ b/events/loginEvent.py @@ -183,8 +183,10 @@ def handle(tornadoRequest): if glob.banchoConf.config["menuIcon"] != "": responseToken.enqueue(serverPackets.mainMenuIcon(glob.banchoConf.config["menuIcon"])) - # Send online users IDs array - responseToken.enqueue(serverPackets.onlineUsers()) + # Send online users' panels + for _, token in glob.tokens.tokens.items(): + if not token.restricted: + responseToken.enqueue(serverPackets.userPanel(token.userID)) # Get location and country from ip.zxq.co or database if glob.localize: @@ -257,4 +259,4 @@ def handle(tornadoRequest): log.info("Invalid bancho login request from **{}** (insufficient POST data)".format(requestIP), "bunker") # Return token string and data - return responseTokenString, responseData \ No newline at end of file + return responseTokenString, responseData