diff --git a/matrix-invitation-dealer/main.py b/matrix-invitation-dealer/main.py index 1cc8cfb..b464b8a 100644 --- a/matrix-invitation-dealer/main.py +++ b/matrix-invitation-dealer/main.py @@ -66,7 +66,7 @@ class Bot: await self.leave(room) 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 user = event.sender