show count of !maskfind results

This commit is contained in:
jesopo 2020-01-11 22:18:41 +00:00
parent a9e166fdac
commit c526322bc0

View file

@ -30,7 +30,7 @@ class Module(ModuleManager.BaseModule):
nicknames.add(nickname) nicknames.add(nickname)
if nicknames: if nicknames:
event["stdout"].write("%s: %s" % event["stdout"].write("%s (%d): %s" %
(hostmask_str, ", ".join(sorted(nicknames)))) (hostmask_str, len(nicknames), ", ".join(sorted(nicknames))))
else: else:
event["stderr"].write("Hostmask not found") event["stderr"].write("Hostmask not found")