From 39fd546eed3b517c4da83bc48d019a121d645cfc Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 5 Feb 2010 15:49:59 +0100 Subject: [PATCH] Shorten autoKibitz confirmation on FICS Strip off the "players)", but leave the separatng space. --- backend.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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; -- 1.7.0.4