kick annoying kids, ping all command

This commit is contained in:
Ayush Saini 2023-03-24 23:16:26 +05:30
parent 7897eebd19
commit 7f95481c26
5 changed files with 29 additions and 2 deletions

View file

@ -190,7 +190,8 @@ def add_profile(
cid = ros['client_id']
ip = _ba.get_client_ip(cid)
serverdata.clients[account_id]["lastIP"] = ip
serverdata.recents.append({"client_id":cid,"deviceId":display_string,"pbid": account_id})
serverdata.recents = serverdata.recents[-20:]
device_id = _ba.get_client_public_device_uuid(cid)
if(device_id==None):
device_id = _ba.get_client_device_uuid(cid)