Trying to fix the user metadata problem. Will this kill performance?

This commit is contained in:
goeo_ 2017-04-16 06:41:25 -04:00
parent a0fdc6c292
commit 2c2c85b382
1 changed files with 5 additions and 3 deletions

View File

@ -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
return responseTokenString, responseData