Made the ambiguous error message when multiple commands are ambiguous a little prettier.

This commit is contained in:
Jeremy Fincher 2003-10-21 19:00:12 +00:00
parent 3c4a53c42c
commit d472938bae

View File

@ -95,8 +95,8 @@ class Misc(callbacks.Privmsg):
L = [] L = []
while ambiguousCommands: while ambiguousCommands:
(command, cbs) = ambiguousCommands.popitem() (command, cbs) = ambiguousCommands.popitem()
L.append('%r is available in the %s plugins' % \ L.append('The command %r is available in the %s '
(command, utils.commaAndify(cbs))) 'plugins' % (command, utils.commaAndify(cbs)))
s = '%s; please specify from which plugins to ' \ s = '%s; please specify from which plugins to ' \
'call these commands.' % '; '.join(L) 'call these commands.' % '; '.join(L)
irc.queueMsg(callbacks.reply(msg, 'Error: ' + s)) irc.queueMsg(callbacks.reply(msg, 'Error: ' + s))