int backup;
char *p;
-#ifdef WIN32
if (appData.debugMode) {
if (!error) {
fprintf(debugFP, "<ICS: ");
fprintf(debugFP, "\n");
}
}
-#endif
if (count > 0) {
/* If last read ended with a partial line that we couldn't parse,
#ifdef WIN32
if (loggedOn == TRUE)
if (ZippyControl(buf, &backup) || ZippyConverse(buf, &backup) ||
- (appData.zippyPlay && ZippyMatch(buf, &backup)));
+ (appData.zippyPlay && ZippyMatch(buf, &backup)));
#else
- if (ZippyControl(buf, &backup) ||
- ZippyConverse(buf, &backup) ||
- (appData.zippyPlay && ZippyMatch(buf, &backup))) {
+ if (ZippyControl(buf, &i) ||
+ ZippyConverse(buf, &i) ||
+ (appData.zippyPlay && ZippyMatch(buf, &i))) {
loggedOn = TRUE;
if (!appData.colorize) continue;
}
/* Update currentMove and known move number limits */
newMove = newGame || moveNum > forwardMostMove;
- /* If we found takebacks during icsEngineAnalyze
+ /* If we found takebacks during icsEngineAnalyze
try send to engine */
if (!newGame && appData.icsEngineAnalyze && moveNum < forwardMostMove) {
takeback = forwardMostMove - moveNum;
cps->isr = AddInputSource(cps->pr, TRUE, ReceiveFromProgram, cps);
if (cps->protocolVersion > 1) {
- sprintf(buf, "xboard\nprotover %d\n", cps->protocolVersion);
+ sprintf(buf, "xboard\ngui xboard %s\nprotover %d\n", VERSION, cps->protocolVersion);
SendToProgram(buf, cps);
} else {
SendToProgram("xboard\n", cps);
cps->which, message);
}
/* if icsEngineAnalyze is active we block all
- whisper and kibitz output, because nobody want
- see this
+ whisper and kibitz output, because nobody want
+ see this
*/
if (appData.icsEngineAnalyze) {
if (strstr(message, "whisper") != NULL ||
- strstr(message, "kibitz") != NULL ||
+ strstr(message, "kibitz") != NULL ||
strstr(message, "tellics") != NULL) return;
HandleMachineMove(message, cps);
} else {
{
char buf[MSG_SIZ];
- if (gameMode == AnalyzeMode || gameMode == AnalyzeFile
+ if (gameMode == AnalyzeMode || gameMode == AnalyzeFile
|| appData.icsEngineAnalyze) {
sprintf(buf, "Analysis (%s)", first.tidy);
AnalysisPopUp(buf, text);