Skip to content

Commit 16ebcb9

Browse files
tadziksumnerevans
andauthored
Make command handler resolution a little nicer
Co-authored-by: Sumner Evans <me@sumnerevans.com>
1 parent 697e4e9 commit 16ebcb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mautrix/bridge/commands/handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ async def handle(self, room_id: RoomID, event_id: EventID, sender: BaseUser,
396396
orig_command = command
397397
command = command.lower()
398398

399-
handler = command_handlers.get(command) or command_aliases.get(command)
399+
handler = command_handlers.get(command, command_aliases.get(command))
400400
if handler is None or not handler.is_enabled_for(evt):
401401
if sender.command_status and "next" in sender.command_status:
402402
args.insert(0, orig_command)

0 commit comments

Comments
 (0)