X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=Engine.pm;h=c364ae5daff3a800082d5abb00c3d5cdc43a41b4;hp=59b1fe36e6617a992272df09c210a74cc2ede14d;hb=960b6ea34239ae508e3ab9841665fd7ba390fba3;hpb=6da09de90c65452ce191c77e8bf1c1bf38def823 diff --git a/Engine.pm b/Engine.pm index 59b1fe3..c364ae5 100644 --- 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 {