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():
|
||||
accountIds = pdata.get_roles()["owner"]["ids"]
|
||||
profiles = pdata.get_profiles()
|
||||
if "owner" in pdata.get_roles():
|
||||
accountIds = pdata.get_roles()["owner"]["ids"]
|
||||
profiles = pdata.get_profiles()
|
||||
|
||||
for account_id in accountIds:
|
||||
if account_id in profiles:
|
||||
profile = profiles[account_id]
|
||||
if "lastIP" in profile:
|
||||
ip = profile["lastIP"]
|
||||
_ba.append_owner_ip(ip)
|
||||
for account_id in accountIds:
|
||||
if account_id in profiles:
|
||||
profile = profiles[account_id]
|
||||
if "lastIP" in profile:
|
||||
ip = profile["lastIP"]
|
||||
_ba.append_owner_ip(ip)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue