From: H.G. Muller Date: Sun, 15 Jan 2012 20:29:11 +0000 (+0100) Subject: Suppress empty lines when observing on VICS X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=9537a7be90fbf4f06b9ccb1811185c169b90d6fa;p=xboard.git Suppress empty lines when observing on VICS Capture of the engine kibitzes when observing an engine game with -autoKibitz on was still leaking a linefeed on the Variant ICS (but not FICS or ICC!?). --- diff --git a/backend.c b/backend.c index 6d0708d..d099357 100644 --- a/backend.c +++ b/backend.c @@ -3065,7 +3065,8 @@ read_from_ics (InputSourceRef isr, VOIDSTAR closure, char *data, int count, int if (appData.autoKibitz && started == STARTED_NONE && !appData.icsEngineAnalyze && // [HGM] [DM] ICS analyze (gameMode == IcsPlayingWhite || gameMode == IcsPlayingBlack || gameMode == IcsObserving)) { - if((looking_at(buf, &i, "* kibitzes: ") || looking_at(buf, &i, "* whispers: ")) && + if((looking_at(buf, &i, "\n* kibitzes: ") || looking_at(buf, &i, "\n* whispers: ") || + looking_at(buf, &i, "* kibitzes: ") || looking_at(buf, &i, "* whispers: ")) && (StrStr(star_match[0], gameInfo.white) == star_match[0] || StrStr(star_match[0], gameInfo.black) == star_match[0] )) { // kibitz of self or opponent suppressKibitz = TRUE;