mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
Converted not to care about how long its messages are.
This commit is contained in:
parent
8dc457961a
commit
b6993152e6
@ -150,7 +150,7 @@ class Debian(callbacks.Privmsg, PeriodicFileDownloader):
|
|||||||
if len(packages) == 0:
|
if len(packages) == 0:
|
||||||
irc.reply(msg, 'I found no packages with that file.')
|
irc.reply(msg, 'I found no packages with that file.')
|
||||||
else:
|
else:
|
||||||
irc.reply(msg, ircutils.privmsgPayload(packages, ', '))
|
irc.reply(msg, utils.commaAndify(packages))
|
||||||
|
|
||||||
_debreflags = re.DOTALL | re.IGNORECASE
|
_debreflags = re.DOTALL | re.IGNORECASE
|
||||||
_debpkgre = re.compile(r'<a.*>(.*?)</a>', _debreflags)
|
_debpkgre = re.compile(r'<a.*>(.*?)</a>', _debreflags)
|
||||||
@ -196,8 +196,6 @@ class Debian(callbacks.Privmsg, PeriodicFileDownloader):
|
|||||||
if pkgMatch and brMatch:
|
if pkgMatch and brMatch:
|
||||||
s = '%s (%s)' % (pkgMatch.group(1), brMatch.group(1))
|
s = '%s (%s)' % (pkgMatch.group(1), brMatch.group(1))
|
||||||
responses.append(s)
|
responses.append(s)
|
||||||
random.shuffle(responses)
|
|
||||||
ircutils.shrinkList(responses, ', ', 400)
|
|
||||||
s = 'Total matches: %s, shown: %s. %s' % \
|
s = 'Total matches: %s, shown: %s. %s' % \
|
||||||
(numberOfPackages, len(responses), ', '.join(responses))
|
(numberOfPackages, len(responses), ', '.join(responses))
|
||||||
irc.reply(msg, s)
|
irc.reply(msg, s)
|
||||||
|
Loading…
Reference in New Issue
Block a user