Trying to fix the user metadata problem. Will this kill performance?
This commit is contained in:
parent
a0fdc6c292
commit
2c2c85b382
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user