add comment on new code and add () for logic checks

This commit is contained in:
Bronya Rand 2023-12-04 16:00:02 -06:00
parent 085daaeff7
commit f71b83b14f
2 changed files with 2495 additions and 0 deletions

View File

@ -1779,6 +1779,7 @@ async function checkWorldInfo(chat, maxContext) {
const secondarySubstituted = substituteParams(keysecondary);
console.debug(`WI UID:${entry.uid}: Filtering for secondary keyword - "${secondarySubstituted}".`);
// Simplified AND/NOT if statement. (Proper fix for PR#1356 by Bronya)
if (selectiveLogic === 0 && secondarySubstituted && matchKeys(textToScan, secondarySubstituted.trim()) ||
selectiveLogic === 1 && !(secondarySubstituted && matchKeys(textToScan, secondarySubstituted.trim()))) {
if (selectiveLogic === 0) {

File diff suppressed because it is too large Load Diff