aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-05 18:09:02 +0100
committerGravatar jesopo2019-09-05 18:09:02 +0100
commit7d96d346e152e24cba4586f1e2552ee1f82bfec0 (patch)
tree52041c93ae51ec2715c0f20f776dde89473aaefd /modules
parentsupport searching for quote content in !quote (diff)
signature
show how many quotes found when searching with !quote
Diffstat (limited to 'modules')
-rw-r--r--modules/quotes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/quotes.py b/modules/quotes.py
index 6e114c2d..54311a68 100644
--- a/modules/quotes.py
+++ b/modules/quotes.py
@@ -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")