3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-28 05:29:25 +01:00

ServiceBot: sort featured commands list

This commit is contained in:
James Lu 2016-06-30 18:05:12 -07:00
parent e730909a46
commit 0922f7cefc

View File

@ -317,7 +317,7 @@ class ServiceBot():
if self.featured_cmds: if self.featured_cmds:
self.reply(irc, " ") self.reply(irc, " ")
self.reply(irc, 'Featured commands include:') self.reply(irc, 'Featured commands include:')
for cmd in self.featured_cmds: for cmd in sorted(self.featured_cmds):
if self.commands.get(cmd): if self.commands.get(cmd):
# Only show featured commands that are both defined and loaded. # Only show featured commands that are both defined and loaded.
# TODO: perhaps plugin unload should remove unused featured command # TODO: perhaps plugin unload should remove unused featured command