X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Frcmd.pl;h=0143b29063270c2e7babfef5b100529266293e5e;hb=8e14149148baba63ce5ae2b95aacda8ab6dd0d87;hp=0a362075ce0005e17e549bee2d7b98c3db81eeef;hpb=62a87def961821679e455f333a58bc8c357e0457;p=spider.git diff --git a/cmd/show/rcmd.pl b/cmd/show/rcmd.pl index 0a362075..0143b290 100644 --- a/cmd/show/rcmd.pl +++ b/cmd/show/rcmd.pl @@ -27,7 +27,7 @@ while ($f = shift @f) { # next field next if $to; } next if $who; - if ($f !~ /^\d+/) { + if ($f !~ /^\d+$/) { ($who) = $f; } } @@ -35,6 +35,6 @@ while ($f = shift @f) { # next field $to = 20 unless $to; $from = 0 unless $from; -return (1, DXLog::print($from, $to, $main::systime, 'rcmd', $who)) if $self->{_nospawn}; +return (1, DXLog::print($from, $to, $main::systime, 'rcmd', $who)) if ($self->{_nospawn} || $main::is_win == 1); return (1, $self->spawn_cmd("show/rcmd $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, 'rcmd', $who]));