Skip to content

Commit

Permalink
Merge pull request #174 from MuffinMedic/help
Browse files Browse the repository at this point in the history
Sort cmdinfo and potential match help outputs
  • Loading branch information
edwardslabs authored Jan 31, 2018
2 parents 4b05e15 + b907ff6 commit ffa0f8f
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 ffa0f8f

Please sign in to comment.