From: Marco Costalba Date: Wed, 28 Mar 2012 17:22:40 +0000 (+0100) Subject: Silently handle "ucinewgame" command X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=d6e3a40c819d29db00866bc7f09b9315dff9b95a;p=fairystockfish.git Silently handle "ucinewgame" command Avoid returning "Unknown command", it seems some GUI are misguided by this. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/uci.cpp b/src/uci.cpp index 1b77050..c3eb919 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -88,6 +88,9 @@ void uci_loop() { else if (token == "go") go(pos, is); + else if (token == "ucinewgame") + { /* Avoid returning "Unknown command" */ } + else if (token == "isready") cout << "readyok" << endl;