Sort plugin results.

This commit is contained in:
Jeremy Fincher 2004-02-12 13:31:52 +00:00
parent e45ad03ef4
commit 3902e9f48f

View File

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