X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Flog.pl;h=ec84daa0af781343767cd915409388642756a553;hb=560afad02a093c77df28d9297b5825c465ff963e;hp=18d9405091f8e6132640a74d4be5860003c56b4a;hpb=6227d68be0d99f20afc56c023b81455d100924b7;p=spider.git diff --git a/cmd/show/log.pl b/cmd/show/log.pl index 18d94050..ec84daa0 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,7 +41,6 @@ sub handle $who = $self->call; } - @out = $self->spawn_cmd(\&DXLog::print, args => [$from, $to, $main::systime, undef, $who]); - - return (1, @out); + return (1, DXLog::print($from, $to, $main::systime, undef, $who)) if $self->{_nospawn}; + return (1, $self->spawn_cmd("show/log $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, undef, $who])); }