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", [])
|
ignore = self.bot.cfg.get("misskey_preview", {}).get("ignore", [])
|
||||||
if not isinstance(event, niobot.RoomMessageText):
|
if not isinstance(event, niobot.RoomMessageText):
|
||||||
return
|
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
|
return
|
||||||
|
|
||||||
sent = []
|
sent = []
|
||||||
|
|
Loading…
Reference in a new issue