Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mrepol742 committed Oct 16, 2023
1 parent 4923118 commit b570264
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,11 @@ function redfox_fb(fca_state, login, cb) {
}
}

if (users.blocked.includes(event.senderID) || users.bot.includes(event.senderID) || users.muted.includes(event.senderID) || (!users.admin.includes(event.senderID) && groups.blocked.includes(event.threadID)) || blockedCall.includes(api.getCurrentUserID())) {
if (!(event.senderID === undefined)) {
if (users.blocked.includes(event.senderID) || users.bot.includes(event.senderID) || users.muted.includes(event.senderID) || (!users.admin.includes(event.senderID) && groups.blocked.includes(event.threadID))) {
return;
}
} else if (blockedCall.includes(api.getCurrentUserID())) {
return;
}

Expand Down

0 comments on commit b570264

Please sign in to comment.