From b6993152e6f82a30a9a7366dfd0db066ed93a13b Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 7 Sep 2003 06:10:09 +0000 Subject: [PATCH] Converted not to care about how long its messages are. --- plugins/Debian.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/Debian.py b/plugins/Debian.py index 485182e9e..1093f421d 100644 --- a/plugins/Debian.py +++ b/plugins/Debian.py @@ -150,7 +150,7 @@ class Debian(callbacks.Privmsg, PeriodicFileDownloader): if len(packages) == 0: irc.reply(msg, 'I found no packages with that file.') else: - irc.reply(msg, ircutils.privmsgPayload(packages, ', ')) + irc.reply(msg, utils.commaAndify(packages)) _debreflags = re.DOTALL | re.IGNORECASE _debpkgre = re.compile(r'(.*?)', _debreflags) @@ -196,8 +196,6 @@ class Debian(callbacks.Privmsg, PeriodicFileDownloader): if pkgMatch and brMatch: s = '%s (%s)' % (pkgMatch.group(1), brMatch.group(1)) responses.append(s) - random.shuffle(responses) - ircutils.shrinkList(responses, ', ', 400) s = 'Total matches: %s, shown: %s. %s' % \ (numberOfPackages, len(responses), ', '.join(responses)) irc.reply(msg, s)