X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fnode.pl;h=d45cad36155a8e85ef49131ecb2e336cbd48bdf9;hb=dc016a0633cdb15d29b9a71fdec2c230fbad201b;hp=9b6938a60db6489ec1d2166d8486def5cda98cc5;hpb=3f1c5ab45aa13e99da6bea0bfcc6d4434beb5871;p=spider.git diff --git a/cmd/show/node.pl b/cmd/show/node.pl index 9b6938a6..d45cad36 100644 --- a/cmd/show/node.pl +++ b/cmd/show/node.pl @@ -17,16 +17,17 @@ 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) { - use DB_File; - my ($action, $key, $data); - for ($action = R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = R_NEXT) { + my ($action, $key, $data) = (0,0,0); + for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) { if ($data =~ m{sort => '[ACRSX]'}) { push @call, $key; ++$count;