From: H.G. Muller Date: Fri, 5 Feb 2010 14:49:59 +0000 (+0100) Subject: Shorten autoKibitz confirmation on FICS X-Git-Tag: master-20100206~8 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=39fd546eed3b517c4da83bc48d019a121d645cfc;p=xboard.git Shorten autoKibitz confirmation on FICS Strip off the "players)", but leave the separatng space. --- diff --git a/backend.c b/backend.c index 4a96139..593e056 100644 --- a/backend.c +++ b/backend.c @@ -2472,6 +2472,8 @@ read_from_ics(isr, closure, data, count, error) } else if(looking_at(buf, &i, "kibitzed to *\n") && atoi(star_match[0])) { // suppress the acknowledgements of our own autoKibitz + char *p; + if(p = strchr(star_match[0], ' ')) p[1] = NULLCHAR; // clip off "players)" on FICS SendToPlayer(star_match[0], strlen(star_match[0])); looking_at(buf, &i, "*% "); // eat prompt next_out = i;