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 #12 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 fad0f99 + 1801160 commit a26cfb7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,10 @@ function redfox_fb(fca_state, login, cb) {
}
}

if (settings[login].maintenance && !["message", "message_reply"].includes(event.type)) {
return;
}

switch (event.type) {
case "message":
case "message_reply":
Expand Down Expand Up @@ -4531,8 +4535,7 @@ async function ai(api, event) {
return;
}
const login = api.getCurrentUserID();
if (settings[login].owner && settings[login].owner != "") {
const uid = settings[login].owner;
const uid = settings[login].owner;

api.getUserInfo(uid, (err, info) => {
if (err) return utils.logged(err);
Expand All @@ -4547,9 +4550,6 @@ async function ai(api, event) {
unLink(dirp);
});
});
} else {
sendMessage(api, event, "This account has no owner set!");
}

} else if (testCommand(api, query2, "clear--thread-lock", event.senderID, "admin", true)) {
if (!settings[login].maintenance) {
Expand Down

0 comments on commit a26cfb7

Please sign in to comment.