From fbcec1b89facf2ffe17448e3543c3b5479155cec Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 15 Jan 2004 00:03:20 +0000 Subject: [PATCH] Fix the 'No high bidder' bug (#876914) --- plugins/Ebay.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/Ebay.py b/plugins/Ebay.py index e292b312a..fd7393fd6 100644 --- a/plugins/Ebay.py +++ b/plugins/Ebay.py @@ -161,10 +161,11 @@ class Ebay(callbacks.PrivmsgCommandAndRegexp, configurable.Mixin): m = r.search(s) if m: if r in self._multiField: - # [:3] is to make sure that we don't pass a tuple with - # more than 3 items. this allows self._bidder to work - # since self._bidder returns a 5 item tuple - resp.append('%s: %s (%s)' % bold(m.groups()[:3])) + # Have to filter the results from self._bidder since + # 2 of the 5 items in its tuple will always be None. + #self.log.warning(m.groups()) + matches = filter(None, m.groups()) + resp.append('%s: %s (%s)' % bold(matches)) else: resp.append('%s: %s' % bold(m.groups())) if resp: