don't check account in can_run_restricted_cmd when DISABLE_ACCOUNTS is True

This commit is contained in:
jacob1 2017-02-24 23:50:51 -05:00
parent bc6375cf24
commit 6f5f09b76e

View File

@ -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
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
if user.userhost in [users._get(player).userhost for player in pl]: # FIXME