mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Fixed output in the face of a single responding dictionary.
This commit is contained in:
parent
3da65af7c8
commit
679b8fbaee
@ -136,7 +136,7 @@ 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)
|
||||||
if dictionary == '*':
|
if dictionary == '*' and len(dbs) > 1:
|
||||||
s = '%s responded: %s' % (utils.commaAndify(dbs), '; '.join(L))
|
s = '%s responded: %s' % (utils.commaAndify(dbs), '; '.join(L))
|
||||||
else:
|
else:
|
||||||
s = '; '.join(L)
|
s = '; '.join(L)
|
||||||
|
Loading…
Reference in New Issue
Block a user