mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Made the ambiguous error message when multiple commands are ambiguous a little prettier.
This commit is contained in:
parent
3c4a53c42c
commit
d472938bae
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user