my ($self, $line) = @_;
return (1, $self->msg('e5')) unless $self->priv >= 1;
+use DB_File;
+
my @call = map {uc $_} split /\s+/, $line;
my @out;
+my $count;
# search thru the user for nodes
unless (@call) {
-# the official way
-# @call = sort map { my $ref; (($ref = DXUser->get_current($_)) && $ref->sort ne 'U') ? $_ : () } DXUser::get_all_calls;
- use DB_File;
- my ($action, $count, $key, $data);
+ my ($action, $key, $data);
for ($action = R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = R_NEXT) {
if ($data =~ m{sort => '[ACRSX]'}) {
push @call, $key;
+ ++$count;
}
- ++$count;
}
}
} else {
push @out, $self->msg('snode2', $pcall, $sort, $ver ? "$major\-$minor.$subs" : " ");
}
+ ++$count;
}
-return (1, @out);
+return (1, @out, $self->msg('rec', $count));