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

Commit

Permalink
Merge pull request #21 from mrepol742/master
Browse files Browse the repository at this point in the history
Initial Commit
  • Loading branch information
mrepol742 authored Jan 16, 2024
2 parents f245692 + 5023d65 commit 2aeb27f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ function redfox_fb(fca_state, login, cb) {

// check if thread lock exists and is not equal to current bot id
// then return
if (settingsThread[event.threadID].lock && settingsThread[event.threadID].lock != api.getCurrentUserID()) {
if (settingsThread[event.threadID] && settingsThread[event.threadID].lock && settingsThread[event.threadID].lock != api.getCurrentUserID()) {
return;
}

Expand Down Expand Up @@ -4128,7 +4128,7 @@ async function ai(api, event) {
} else {
data.shift();
let command = data.join(" ");
if (settings.shared["block_cmd"]) {
if (!settings.shared["block_cmd"]) {
settings.shared["block_cmd"] = [];
}
settings.shared["block_cmd"].push(command);
Expand Down

0 comments on commit 2aeb27f

Please sign in to comment.