X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Flog.pl;h=fa8806c21f68554c30b7e6fb64ae85035cd35586;hb=54775ee86e54343a0fba66a0bbca3567de96cf46;hp=82356bcd390029c726efc6e91f89c9389fc6f09f;hpb=a8b49f6c169f586810953d354fb90df33c030e58;p=spider.git diff --git a/cmd/show/log.pl b/cmd/show/log.pl index 82356bcd..fa8806c2 100644 --- a/cmd/show/log.pl +++ b/cmd/show/log.pl @@ -24,10 +24,10 @@ sub handle next if $from && $to > $from; } unless ($to) { - ($to) = $f =~ /^(\d+)$/o if !$to; # is it a to count? + ($to) = $f =~ /^(\d+)$/ if !$to; # is it a to count? next if $to; } - unless ($who) { + 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])); }