summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-04-25 19:32:19 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-04-25 19:42:35 +0200
commit87bad8cac29b480c36ed05b652e5520fd0a1f73c (patch)
treef29f123b5384f91f0121398a76c56011693018d4 /modules
parentccbcef46c0bf1ffb596ca966e55c474be9b26535 (diff)
quotes: Return three quotes instead of two and leftovers when there is exactly three quotes.
Signed-off-by: Vegard Storheil Eriksen <zyp@jvnv.net>
Diffstat (limited to 'modules')
-rw-r--r--modules/quotes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/quotes.py b/modules/quotes.py
index cf3c794..bea34e3 100644
--- a/modules/quotes.py
+++ b/modules/quotes.py
@@ -112,9 +112,9 @@ class IRCHandler(Quotes):
results = Quotes.find(self, args, func)
leftovers = []
if len(results) > 1:
- yield 'Quote: Found \002%d\002 results for "%s"%s' % (len(results), args, ', here are the last two:' if len(results) > 2 else ':' if len(results) else '')
+ yield 'Quote: Found \002%d\002 results for "%s"%s' % (len(results), args, ', here are the last two:' if len(results) > 3 else ':' if len(results) else '')
if len(results):
- if len(results) > 2:
+ if len(results) > 3:
leftovers, results = results[:-2], results[-2:]
for l in self.output(results):
yield l