From 8fba4a85f54e11f48279b013cba02a3ef9d53a2b Mon Sep 17 00:00:00 2001 From: Daniel DiPaolo Date: Mon, 6 Oct 2003 21:15:07 +0000 Subject: [PATCH] * Fixed a little buglet in the debversion output where the "Shown" count would be incorrect for any time nothing was found. --- plugins/Debian.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/Debian.py b/plugins/Debian.py index d2bc347b3..f73d2e570 100644 --- a/plugins/Debian.py +++ b/plugins/Debian.py @@ -207,7 +207,7 @@ class Debian(callbacks.Privmsg, plugins.PeriodicFileDownloader): numberOfPackages = m.group(1) m = self._debtablere.search(html) if m is None: - responses.append('No package found for: %s (%s)' % \ + irc.reply(msg, 'No package found for: %s (%s)' % \ (package, branch)) else: tableData = m.group(1) @@ -218,9 +218,9 @@ class Debian(callbacks.Privmsg, plugins.PeriodicFileDownloader): if pkgMatch and brMatch: s = '%s (%s)' % (pkgMatch.group(1), brMatch.group(1)) responses.append(s) - s = 'Total matches: %s, shown: %s. %s' % \ - (numberOfPackages, len(responses), ', '.join(responses)) - irc.reply(msg, s) + resp = 'Total matches: %s, shown: %s. %s' % \ + (numberOfPackages, len(responses), ', '.join(responses)) + irc.reply(msg, resp) _incomingRe = re.compile(r'', re.I) def debincoming(self, irc, msg, args):