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;
}
$who = $self->call;
}
- @out = $self->spawn_cmd("show/log $cmdline", \&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]));
}