2000-06-13 10:58:55 +00:00
|
|
|
#
|
|
|
|
# show/isolate
|
|
|
|
#
|
|
|
|
# show all excluded users
|
|
|
|
#
|
|
|
|
# Copyright (c) 2000 Dirk Koopman G1TLH
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
|
|
|
my ($self, $line) = @_;
|
|
|
|
return (1, $self->msg('e5')) unless $self->priv >= 1;
|
|
|
|
|
2000-07-29 16:18:19 +00:00
|
|
|
my @out;
|
|
|
|
|
|
|
|
use DB_File;
|
|
|
|
|
2000-07-31 21:38:26 +00:00
|
|
|
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) {
|
2001-03-13 21:50:02 +00:00
|
|
|
if ($data =~ m{isolate\s*=>}) {
|
2000-07-29 16:18:19 +00:00
|
|
|
my $u = DXUser->get_current($key);
|
|
|
|
if ($u && $u->isolate) {
|
|
|
|
push @out, $key;
|
|
|
|
++$count;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return (1, @out, $self->msg('rec', $count));
|
|
|
|
|
|
|
|
|