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)
if nicknames:
event["stdout"].write("%s: %s" %
(hostmask_str, ", ".join(sorted(nicknames))))
event["stdout"].write("%s (%d): %s" %
(hostmask_str, len(nicknames), ", ".join(sorted(nicknames))))
else:
event["stderr"].write("Hostmask not found")