show how many quotes found when searching with !quote

This commit is contained in:
jesopo 2019-09-05 18:09:02 +01:00
parent 0563305b20
commit 7d96d346e1

View file

@ -109,7 +109,8 @@ class Module(ModuleManager.BaseModule):
category_str = category
if search:
category_str = "%s (%s)" % (category_str, search)
category_str = "%s (%s [%d found])" % (category_str, search,
len(quotes))
event["stdout"].write("%s: %s" % (category_str, quote))
else:
event["stderr"].write("No matching quotes")