From 9537a7be90fbf4f06b9ccb1811185c169b90d6fa Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 15 Jan 2012 21:29:11 +0100 Subject: [PATCH] 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!?). --- backend.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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; -- 1.7.0.4