Do a direct lookup for hostmasks for stasis.

This commit is contained in:
Vgr E. Barry 2016-10-27 09:13:07 -04:00
parent 2877abea55
commit 349433c9ab

View File

@ -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