s/masks == []/not masks/

This commit is contained in:
Valentin Lorentz 2023-07-02 10:19:06 +02:00
parent 3018982d5a
commit d63720f2ed

View File

@ -1289,7 +1289,7 @@ class Banmask(registry.SpaceSeparatedSetOfStrings):
if (bnick, buser, bhost) == ('*', '*', '*') and \
ircutils.isUserHostmask(hostmask) and \
masks == []:
not masks:
masks.append(hostmask)
return masks