X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fisolate.pl;h=daa77f42eb01be26fe65c8d454aaa01025d77167;hb=ab811a0c902225075a9bd69749f65594079433a9;hp=35eb822a2920f5341a15ec57b262b2f8116fbfa3;hpb=2a9a56c26e1ed0622dc9cd7fc48b0498b059e274;p=spider.git diff --git a/cmd/show/isolate.pl b/cmd/show/isolate.pl index 35eb822a..daa77f42 100644 --- a/cmd/show/isolate.pl +++ b/cmd/show/isolate.pl @@ -5,7 +5,7 @@ # # Copyright (c) 2000 Dirk Koopman G1TLH # -# $Id$ +# # my ($self, $line) = @_; @@ -16,9 +16,9 @@ my @out; use DB_File; my ($action, $count, $key, $data) = (0,0,0,0); -for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) { - if ($data =~ m{isolate\s*=>}) { - my $u = DXUser->get_current($key); +for ($action = DXUser::R_FIRST, $count=0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) { + if ($data =~ m{isolate}) { + my $u = DXUser::get_current($key); if ($u && $u->isolate) { push @out, $key; ++$count;