Fix the red note on moves where we have no historic analysis.
[remoteglot] / Engine.pm
index 59b1fe3..c364ae5 100644 (file)
--- a/Engine.pm
+++ b/Engine.pm
@@ -46,7 +46,9 @@ sub _anyevent_handle_line {
 
        if (!$engine->{'seen_uciok'}) {
                # Gobble up lines until we see uciok.
-               if ($line =~ /^uciok$/) {
+               if ($line =~ /^id (\S+) (.*?)\s*$/) {
+                       $engine->{'id'}->{$1} = $2;
+               } elsif ($line =~ /^uciok$/) {
                        $engine->{'seen_uciok'} = 1;
                }
        } else {