From d6e3a40c819d29db00866bc7f09b9315dff9b95a Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Wed, 28 Mar 2012 18:22:40 +0100 Subject: [PATCH] Silently handle "ucinewgame" command Avoid returning "Unknown command", it seems some GUI are misguided by this. No functional change. Signed-off-by: Marco Costalba --- src/uci.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.2