X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Flog.pl;h=fa8806c21f68554c30b7e6fb64ae85035cd35586;hb=5b8c14dd8ac82a211bc1bfbcefee7e7820a812a1;hp=ec84daa0af781343767cd915409388642756a553;hpb=a26a82ebeee2135468113c64fc25c5f9ad1000cb;p=spider.git diff --git a/cmd/show/log.pl b/cmd/show/log.pl index ec84daa0..fa8806c2 100644 --- a/cmd/show/log.pl +++ b/cmd/show/log.pl @@ -27,7 +27,7 @@ sub handle ($to) = $f =~ /^(\d+)$/ if !$to; # is it a to count? next if $to; } - unless ($f =~ /^\d+/) { + unless ($f =~ /^\d+$/) { $who = $f; next if $who; } @@ -41,6 +41,6 @@ sub handle $who = $self->call; } - return (1, DXLog::print($from, $to, $main::systime, undef, $who)) if $self->{_nospawn}; + return (1, DXLog::print($from, $to, $main::systime, undef, $who)) if ($self->{_nospawn} || $main::is_win == 1); return (1, $self->spawn_cmd("show/log $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, undef, $who])); }