projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
640c466
)
Shorten autoKibitz confirmation on FICS
author
H.G. Muller
<h.g.muller@hccnet.nl>
Fri, 5 Feb 2010 14:49:59 +0000 (15:49 +0100)
committer
H.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
patch
|
blob
|
history
diff --git
a/backend.c
b/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;