Trim left spaces when parsing command. Fixes #322

This commit is contained in:
Tulir Asokan
2019-05-15 20:45:16 +03:00
parent 5bbadbbdc8
commit ab1d65e6f0
+1 -1
View File
@@ -213,7 +213,7 @@ class MatrixHandler:
prefix = self.config["bridge.command_prefix"]
is_command = text.startswith(prefix)
if is_command:
text = text[len(prefix) + 1:]
text = text[len(prefix) + 1:].lstrip()
return is_command, text
async def handle_message(self, room: MatrixRoomID, sender_id: MatrixUserID, message: Dict,