mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Sort plugin results.
This commit is contained in:
parent
e45ad03ef4
commit
3902e9f48f
@ -305,7 +305,9 @@ class Misc(callbacks.Privmsg):
|
|||||||
command = callbacks.canonicalName(privmsgs.getArgs(args))
|
command = callbacks.canonicalName(privmsgs.getArgs(args))
|
||||||
cbs = callbacks.findCallbackForCommand(irc, command)
|
cbs = callbacks.findCallbackForCommand(irc, command)
|
||||||
if cbs:
|
if cbs:
|
||||||
irc.reply(utils.commaAndify([cb.name() for cb in cbs]))
|
names = [cb.name() for cb in cbs]
|
||||||
|
names.sort()
|
||||||
|
irc.reply(utils.commaAndify(names))
|
||||||
else:
|
else:
|
||||||
irc.error('There is no such command %s' % command)
|
irc.error('There is no such command %s' % command)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user