Ignore self (how has this not caused a loop yet)
This commit is contained in:
parent
9b37aedf30
commit
225862a401
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class MisskeyPreviewModule(niobot.Module):
|
|||
ignore = self.bot.cfg.get("misskey_preview", {}).get("ignore", [])
|
||||
if not isinstance(event, niobot.RoomMessageText):
|
||||
return
|
||||
if event.sender in ignore or room.room_id in ignore:
|
||||
if event.sender in ignore or room.room_id in ignore or event.sender == self.bot.user_id:
|
||||
return
|
||||
|
||||
sent = []
|
||||
|
|
Loading…
Reference in a new issue