Don't show (Account) in fallow/fdeny list if ACCOUNTS_ONLY is set

This commit is contained in:
skizzerz 2015-06-12 11:21:54 -05:00
parent d87db24f51
commit fde409aea2

View File

@ -6483,7 +6483,10 @@ def allow_deny(cli, nick, chan, rest, mode):
variable = var.DENY_ACCOUNTS variable = var.DENY_ACCOUNTS
if variable: if variable:
for acc, varied in variable.items(): for acc, varied in variable.items():
cmds[acc+" (Account)"] = varied if var.ACCOUNTS_ONLY:
cmds[acc] = varied
else:
cmds[acc+" (Account)"] = varied
if not var.ACCOUNTS_ONLY: if not var.ACCOUNTS_ONLY:
if mode == "allow": if mode == "allow":
variable = var.ALLOW variable = var.ALLOW