4 # show all excluded users
6 # Copyright (c) 2000 Dirk Koopman G1TLH
11 my ($self, $line) = @_;
12 return (1, $self->msg('e5')) unless $self->priv >= 9;
19 $line =~ s/[^\w\-\/]+//g;
23 return (1, $self->msg('lockoutuse')) unless $line;
25 @out = $self->spawn_cmd("show lockout $line", sub {
28 my ($action, $count, $key, $data) = (0,0,0,0);
29 eval qq{for (\$action = DXUser::R_FIRST, \$count = 0; !\$DXUser::dbm->seq(\$key, \$data, \$action); \$action = DXUser::R_NEXT) {
30 if (\$data =~ m{lockout}) {
31 if (\$line eq 'ALL' || \$key =~ /^$line/) {
32 my \$ur = DXUser::get_current(\$key);
33 if (\$ur && \$ur->lockout) {
42 foreach my $call (@val) {
44 push @out, sprintf "%-12s %-12s %-12s %-12s %-12s", @l;
50 push @l, "" while @l < 5;
51 push @out, sprintf "%-12s %-12s %-12s %-12s %-12s", @l;
55 push @out, $self->msg('rec', $count);