Skip to content

Commit

Permalink
Merge pull request #422 from miaowware/help-e-fix
Browse files Browse the repository at this point in the history
fix issue with help command/categories
  • Loading branch information
classabbyamp committed Apr 12, 2021
2 parents c3f002a + abf79b8 commit f55738a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).


## [Unreleased]
### Fixed
- Issue where `?help` might not work for all people.


## [2.7.1] - 2021-04-12
Expand Down
3 changes: 2 additions & 1 deletion exts/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def sort_by_cat(cmds):
ret.sort(key=lambda c: c.__original_kwargs__["category"].name)

for cat in cmn.BoltCats:
ret += sorted(bolt_cmds[cat], key=lambda c: c.name)
if cat in bolt_cmds:
ret += sorted(bolt_cmds[cat], key=lambda c: c.name)

return ret

Expand Down

0 comments on commit f55738a

Please sign in to comment.