Skip to content

Commit

Permalink
Sort cmdinfo and potential match help outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
MuffinMedic committed Jan 9, 2018
1 parent 74c9c76 commit b907ff6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloudbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def add_hook(hook, _event, _run_before=False):
add_hook(command_hook, command_event)
else:
event.notice("Possible matches: {}".format(
formatting.get_text_list([command for command, plugin in potential_matches])))
formatting.get_text_list(sorted([command for command, plugin in potential_matches]))))

if event.type in (EventType.message, EventType.action):
# Regex hooks
Expand Down
2 changes: 1 addition & 1 deletion plugins/core/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def cmdinfo(text, bot, notice):
cmd_hook = potentials[0][1]
else:
notice("Possible matches: {}".format(
formatting.get_text_list([command for command, plugin in potentials])))
formatting.get_text_list(sorted([command for command, plugin in potentials]))))
return
else:
cmd_hook = None
Expand Down

0 comments on commit b907ff6

Please sign in to comment.