From 8794b23f606c879d85dd7d22dda394121f946f06 Mon Sep 17 00:00:00 2001 From: Melvin Jones Repol Date: Fri, 5 Jan 2024 23:19:46 +0800 Subject: [PATCH] Initial Commit --- index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 9db6b41c..0bafd937 100644 --- a/index.js +++ b/index.js @@ -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()); }