Fixed output in the face of a single responding dictionary.

This commit is contained in:
Jeremy Fincher 2003-09-14 07:39:39 +00:00
parent 3da65af7c8
commit 679b8fbaee

View File

@ -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)