From fa54fde4cfec7ae5d4501879ac42f621c33db4dd Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 15 Jan 2012 21:24:12 +0100 Subject: [PATCH] Fix printing non-numeric kibitz with -autoKibitz Messages that were not considered kibitzed engine PV info for lack of numeric content, were kibitzed as coming from "your opponent", which is nonsense if you were iobserving, and masked the source. Fortunately star_match[0] is still holding the original name, at that point. --- backend.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index f2aae99..6d0708d 100644 --- a/backend.c +++ b/backend.c @@ -2929,6 +2929,9 @@ read_from_ics (InputSourceRef isr, VOIDSTAR closure, char *data, int count, int OutputKibitz(suppressKibitz, parse); } else { char tmp[MSG_SIZ]; + if(gameMode == IcsObserving) // restore original ICS messages + snprintf(tmp, MSG_SIZ, "%s kibitzes: %s", star_match[0], parse); + else snprintf(tmp, MSG_SIZ, _("your opponent kibitzes: %s"), parse); SendToPlayer(tmp, strlen(tmp)); } -- 1.7.0.4