mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Simplify logic of disabling the WI entry
This commit is contained in:
@@ -477,15 +477,15 @@ function checkWorldInfo(chat) {
|
||||
let activatedNow = new Set();
|
||||
|
||||
for (let entry of sortedEntries) {
|
||||
if (allActivatedEntries.has(entry.uid) && entry.disable == false) {
|
||||
if (allActivatedEntries.has(entry.uid) || entry.disable == true) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (entry.constant && entry.disable == false) {
|
||||
if (entry.constant) {
|
||||
activatedNow.add(entry.uid);
|
||||
}
|
||||
|
||||
if (Array.isArray(entry.key) && entry.key.length && entry.disable == false) {
|
||||
if (Array.isArray(entry.key) && entry.key.length) {
|
||||
primary: for (let key of entry.key) {
|
||||
if (key && textToScan.includes(key.trim().toLowerCase())) {
|
||||
if (
|
||||
|
Reference in New Issue
Block a user