don't check account in can_run_restricted_cmd when DISABLE_ACCOUNTS is True
This commit is contained in:
parent
bc6375cf24
commit
6f5f09b76e
@ -7036,7 +7036,7 @@ def can_run_restricted_cmd(user):
|
|||||||
if user.nick in pl: # FIXME: Need to update this once list_participants() holds User instances
|
if user.nick in pl: # FIXME: Need to update this once list_participants() holds User instances
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if user.account in [users._get(player).account for player in pl]: # FIXME
|
if not var.DISABLE_ACCOUNTS and user.account in [users._get(player).account for player in pl]: # FIXME
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if user.userhost in [users._get(player).userhost for player in pl]: # FIXME
|
if user.userhost in [users._get(player).userhost for player in pl]: # FIXME
|
||||||
|
Loading…
x
Reference in New Issue
Block a user