mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	add comment on new code and add () for logic checks
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user