mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
check owner role before updating owner ip list
This commit is contained in:
parent
bf4c01c291
commit
4d046f4b0b
1 changed files with 9 additions and 8 deletions
17
dist/ba_root/mods/tools/account.py
vendored
17
dist/ba_root/mods/tools/account.py
vendored
|
|
@ -75,12 +75,13 @@ class AccountUtil:
|
||||||
|
|
||||||
|
|
||||||
def updateOwnerIps():
|
def updateOwnerIps():
|
||||||
accountIds = pdata.get_roles()["owner"]["ids"]
|
if "owner" in pdata.get_roles():
|
||||||
profiles = pdata.get_profiles()
|
accountIds = pdata.get_roles()["owner"]["ids"]
|
||||||
|
profiles = pdata.get_profiles()
|
||||||
|
|
||||||
for account_id in accountIds:
|
for account_id in accountIds:
|
||||||
if account_id in profiles:
|
if account_id in profiles:
|
||||||
profile = profiles[account_id]
|
profile = profiles[account_id]
|
||||||
if "lastIP" in profile:
|
if "lastIP" in profile:
|
||||||
ip = profile["lastIP"]
|
ip = profile["lastIP"]
|
||||||
_ba.append_owner_ip(ip)
|
_ba.append_owner_ip(ip)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue