diff options
| author | 2019-09-05 18:09:02 +0100 | |
|---|---|---|
| committer | 2019-09-05 18:09:02 +0100 | |
| commit | 7d96d346e152e24cba4586f1e2552ee1f82bfec0 (patch) | |
| tree | 52041c93ae51ec2715c0f20f776dde89473aaefd /modules | |
| parent | support 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.py | 3 |
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") |
