From 22e36c815d99cea7d8fc820686da3db720d7e9e6 Mon Sep 17 00:00:00 2001 From: Daniel Mehrmann Date: Sat, 26 Jun 2004 07:20:05 +0000 Subject: [PATCH] Drop all engine output if icsEngineAnalyze is active --- backend.c | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index 66e8173..aaa20a5 100644 --- 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); + } } -- 1.7.0.4