Fix seek graph for VICS
authorH.G. Muller <h.g.muller@hccnet.nl>
Mon, 9 Jan 2012 19:52:05 +0000 (20:52 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Mon, 9 Jan 2012 19:52:05 +0000 (20:52 +0100)
The sought command on the open-source ICS code is ICC-like (no terminating
line), although the server is FICS like. So also accept prompt as seek-graph
trigger on FICS.

backend.c

index 3e91099..3df2b3a 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -3524,7 +3524,7 @@ read_from_ics (InputSourceRef isr, VOIDSTAR closure, char *data, int count, int
            if (looking_at(buf, &i, "% ") ||
                ((started == STARTED_MOVES || started == STARTED_MOVES_NOHIDE)
                 && looking_at(buf, &i, "}*"))) { char *bookHit = NULL; // [HGM] book
            if (looking_at(buf, &i, "% ") ||
                ((started == STARTED_MOVES || started == STARTED_MOVES_NOHIDE)
                 && looking_at(buf, &i, "}*"))) { char *bookHit = NULL; // [HGM] book
-               if(ics_type == ICS_ICC && soughtPending) { // [HGM] seekgraph: on ICC sought-list has no termination line
+               if(soughtPending) { // [HGM] seekgraph: on ICC sought-list has no termination line
                    soughtPending = FALSE;
                    seekGraphUp = TRUE;
                    DrawSeekGraph();
                    soughtPending = FALSE;
                    seekGraphUp = TRUE;
                    DrawSeekGraph();