From 7d96d346e152e24cba4586f1e2552ee1f82bfec0 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 5 Sep 2019 18:09:02 +0100 Subject: show how many quotes found when searching with !quote --- modules/quotes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') 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") -- cgit v1.3.1-10-gc9f91