fix bot replying to its own message

This commit is contained in:
bain 2023-10-13 21:06:36 +02:00
parent f85d0a0f20
commit 36a1867ed5
Signed by: bain
GPG key ID: 31F0F25E3BED0B9B

View file

@ -66,7 +66,7 @@ class Bot:
await self.leave(room) await self.leave(room)
async def room_message_callback(self, room: MatrixRoom, event: RoomMessage): async def room_message_callback(self, room: MatrixRoom, event: RoomMessage):
if type(room) is not MatrixRoom: if type(room) is not MatrixRoom or event.sender == self.client.user_id:
return return
user = event.sender user = event.sender