mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Converted to not worry about message length.
This commit is contained in:
parent
92b745f42f
commit
0c3cb0522b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user