X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=69775951df22254b7df3a96f709862eb1379afb8;hb=395642a0ccce8adbc55d4c8ff58780ab07c12813;hp=52fb5156abf849c668cb4a2d771fa8d5e1958207;hpb=a8ff0fa6ad8c25ee82872f9300654071eb334297;p=xboard.git diff --git a/backend.c b/backend.c index 52fb515..6977595 100644 --- a/backend.c +++ b/backend.c @@ -10203,9 +10203,10 @@ GetEngineLine (char *s, int n) char buf[MSG_SIZ]; extern char *icsNames; if(!s || !*s) return 0; - NamesToList(n == 10 ? icsNames : firstChessProgramNames, command, mnemonic, "all"); + NamesToList(n >= 10 ? icsNames : firstChessProgramNames, command, mnemonic, "all"); for(i=1; mnemonic[i]; i++) if(!strcmp(s, mnemonic[i])) break; if(!mnemonic[i]) return 0; + if(n == 11) return 1; // just testing if there was a match snprintf(buf, MSG_SIZ, "-%s %s", n == 10 ? "icshost" : "fcp", command[i]); if(n == 1) SwapEngines(n); ParseArgsFromString(buf);