From: Daniel Mehrmann Date: Sat, 26 Jun 2004 07:20:05 +0000 (+0000) Subject: Drop all engine output if icsEngineAnalyze is active X-Git-Tag: v4.2.8~36 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=22e36c815d99cea7d8fc820686da3db720d7e9e6;p=xboard.git Drop all engine output if icsEngineAnalyze is active --- 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); + } }