]> git.sesse.net Git - remoteglot/blobdiff - remoteglot.pl
Tiny simplification in serve-analysis.js.
[remoteglot] / remoteglot.pl
index b9055a64d30616ff945bed8fd59c500ab8eeb62c..df524a6b2e4ddd06d41ec8e8a4f2a8bf836adfb6 100755 (executable)
@@ -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";