boldify nickname in !maskfind output so it stands out

This commit is contained in:
jesopo 2020-01-11 22:28:46 +00:00
parent 70be211a16
commit 70d405ced6

View file

@ -34,7 +34,7 @@ class Module(ModuleManager.BaseModule):
if nicknames: if nicknames:
outs = [] outs = []
for nickname, userhost in sorted(nicknames): for nickname, userhost in sorted(nicknames):
outs.append("%s (%s)" % (nickname, userhost)) outs.append("%s (%s)" % (utils.irc.bold(nickname), userhost))
event["stdout"].write("%s (%d/%d): %s" % event["stdout"].write("%s (%d/%d): %s" %
(hostmask_str, len(nicknames), searched, ", ".join(outs))) (hostmask_str, len(nicknames), searched, ", ".join(outs)))
else: else: