X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=remoteglot.pl;h=df524a6b2e4ddd06d41ec8e8a4f2a8bf836adfb6;hb=d5eb627aab9c1ebfeb6bf1ee5affe4376e46e21e;hp=b9055a64d30616ff945bed8fd59c500ab8eeb62c;hpb=23c6ef78cb21c7dac5a6a43c8f3c2875efa76891;p=remoteglot diff --git a/remoteglot.pl b/remoteglot.pl index b9055a6..df524a6 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -152,7 +152,7 @@ sub handle_uci { return if ($engine->{'stopping'} && $line !~ /^bestmove/); $engine->{'stopping'} = 0; - if ($line =~ /^info/) { + if ($line =~ /^info/ && $line !~ / cluster /) { my (@infos) = split / /, $line; shift @infos; @@ -1072,7 +1072,7 @@ sub output_json { } if (exists($pos_calculating->{'history'}) && - defined($remoteglotconf::json_history_dir)) { + defined($remoteglotconf::json_history_dir) && defined($json->{'engine'}{name})) { my $id = id_for_pos($pos_calculating); my $filename = $remoteglotconf::json_history_dir . "/" . $id . ".json";