Drop all engine output if icsEngineAnalyze is active
authorDaniel Mehrmann <mehrmann>
Sat, 26 Jun 2004 07:20:05 +0000 (07:20 +0000)
committerDaniel Mehrmann <mehrmann>
Sat, 26 Jun 2004 07:20:05 +0000 (07:20 +0000)
backend.c

index 66e8173..aaa20a5 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -8919,7 +8919,18 @@ ReceiveFromProgram(isr, closure, message, count, error)
                SubtractTimeMarks(&now, &programStartTime),
                cps->which, message);
     }
-    HandleMachineMove(message, cps);
+       /* if icsEngineAnalyze is active we block all
+          whisper and kibitz output, because nobody want 
+          see this 
+        */
+       if (appData.icsEngineAnalyze) {
+               if (strstr(message, "whisper") != NULL ||
+                   strstr(message, "kibitz") != NULL || 
+                       strstr(message, "tellics") != NULL) return;
+               HandleMachineMove(message, cps);
+       } else {
+               HandleMachineMove(message, cps);
+       }
 }