Converted to not worry about message length.

This commit is contained in:
Jeremy Fincher 2003-09-07 05:08:30 +00:00
parent 92b745f42f
commit 0c3cb0522b

View File

@ -136,16 +136,11 @@ class Dict(callbacks.Privmsg):
s = utils.normalizeWhitespace(s).rstrip(';.,') s = utils.normalizeWhitespace(s).rstrip(';.,')
L.append('%s: %s' % (db, s)) L.append('%s: %s' % (db, s))
utils.sortBy(len, L) utils.sortBy(len, L)
originalFirst = L[0] if dictionary == '*':
ircutils.shrinkList(L, '; ') s = '%s responded: %s' % (utils.commaAndify(dbs), '; '.join(L))
if not L:
irc.reply(msg, '%s \x02<snip>\x0f' % originalFirst[:400])
elif dictionary == '*':
s = '%s responded, %s shown: %s' % \
(utils.commaAndify(dbs), len(L), '; '.join(L))
irc.reply(msg, s)
else: else:
irc.reply(msg, '; '.join(L)) s = '; '.join(L)
irc.reply(msg, s)
Class = Dict Class = Dict