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 #10 from mrepol742/master
Browse files Browse the repository at this point in the history
Initial Commit
  • Loading branch information
mrepol742 authored Jan 5, 2024
2 parents 5e2a1e6 + 8794b23 commit 411233a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,14 @@ function redfox_fb(fca_state, login, cb) {
});
}

if (!settingsThread[event.threadID].lock) {
settingsThread[event.threadID]["lock"] = api.getCurrentUserID();
utils.logged("thread_lock " + event.threadID + " to " + api.getCurrentUserID());
}

if (settingsThread[event.threadID].lock && settingsThread[event.threadID].lock != api.getCurrentUserID()) {
return;
}

settingsThread[event.threadID]["lock"] = api.getCurrentUserID();
utils.logged("thread_lock " + event.threadID + " to " + api.getCurrentUserID());
}


Expand Down

0 comments on commit 411233a

Please sign in to comment.