fix(commands): correct monitor command parsing

Adjusted the command parsing logic to require a space after "monitor," ensuring proper extraction of the room ID from the user input. This change enhances command reliability and prevents misinterpretations that could lead to incorrect room monitoring behavior.
This commit is contained in:
Kumi 2024-11-12 21:36:04 +01:00
parent d847484b5c
commit 91f16b3a99
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -204,7 +204,7 @@ class ApplicationBot:
)
elif command == "list":
return await self.list_tickets(room)
elif command.startswith("monitor"):
elif command.startswith("monitor "):
room_id = self.resolve_room_id(command.split()[1])
await self.add_monitored_room(room_id)
return await self.client.room_send(