Skip to content

Commit

Permalink
Exit out of command handling early if we weren't given a command
Browse files Browse the repository at this point in the history
Fixes #525
  • Loading branch information
skizzerz committed Jul 21, 2024
1 parent 3db6d87 commit 5edbe1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def parse_and_dispatch(wrapper: MessageDispatcher,
if role:
role_prefix = role

if not key:
if not key or key not in decorators.COMMANDS:
return

if force:
Expand Down

0 comments on commit 5edbe1d

Please sign in to comment.