Skip to content

Commit

Permalink
fix msg_limit check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
f1delius committed Apr 14, 2024
1 parent b879194 commit 1699984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ async def message_callback(self, room: MatrixRoom, event: RoomMessageText) -> No
tagged = True

if self.user_id != event.sender and tagged:
if self.owner_id != sender_id or self.msg_limit[sender_id] > 10:
if self.owner_id != sender_id and self.msg_limit[sender_id] > 10:
await send_room_message(
self.client,
room_id,
Expand Down

0 comments on commit 1699984

Please sign in to comment.