From: Marco Costalba Date: Wed, 28 Mar 2012 17:22:40 +0000 (+0100) Subject: Silently handle "ucinewgame" command X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=d6e3a40c819d29db00866bc7f09b9315dff9b95a 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 1b770506..c3eb9190 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;