Do a direct lookup for hostmasks for stasis.
This commit is contained in:
parent
2877abea55
commit
349433c9ab
@ -338,9 +338,7 @@ class User(IRCContext):
|
||||
if not var.DISABLE_ACCOUNTS:
|
||||
amount = var.STASISED_ACCS.get(temp.account, 0)
|
||||
|
||||
for hostmask in var.STASISED:
|
||||
if temp.match_hostmask(hostmask):
|
||||
amount = max(amount, var.STASISED[hostmask])
|
||||
amount = max(amount, var.STASISED.get(temp.userhost, 0))
|
||||
|
||||
return amount
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user