Shorten autoKibitz confirmation on FICS
authorH.G. Muller <h.g.muller@hccnet.nl>
Fri, 5 Feb 2010 14:49:59 +0000 (15:49 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Fri, 5 Feb 2010 17:57:11 +0000 (18:57 +0100)
Strip off the "players)", but leave the separatng space.

backend.c

index 4a96139..593e056 100644 (file)
--- 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;