4 # show all excluded users
6 # Copyright (c) 2000 Dirk Koopman G1TLH
13 my ($self, $line) = @_;
14 return (1, $self->msg('e5')) unless $self->priv >= 9;
19 $line =~ s/[^\w\-\/]+//g;
23 if ($self->{_nospawn}) {
24 @out = generate($self, $line);
26 @out = $self->spawn_cmd("show/lockout $line", sub { return (generate($self, $line)); });
28 return (1, $self->msg('lockoutuse')) unless $line;
38 # my ($action, $count, $key, $data) = (0,0,0,0);
39 # eval qq{for (\$action = DXUser::R_FIRST, \$count = 0; !\$DXUser::dbm->seq(\$key, \$data, \$action); \$action = DXUser::R_NEXT) {
40 # if (\$data =~ m{lockout}) {
41 # if (\$line eq 'ALL' || \$key =~ /^$line/) {
42 # my \$ur = DXUser::get_current(\$key);
43 # if (\$ur && \$ur->lockout) {
54 @val = DXUser::scan(sub {
57 # cheat, don't decode because we can easily pull it out from the json test
58 return $l =~ m{"lockout":1} ? $k : ();
62 for my $call (split /\s+/, $line) {
63 my $l = DXUser::get($call, 1);
65 next unless $l =~ m{"lockout":1};
72 foreach my $call (@val) {
74 push @out, sprintf "%-12s %-12s %-12s %-12s %-12s", @l;
80 push @l, "" while @l < 5;
81 push @out, sprintf "%-12s %-12s %-12s %-12s %-12s", @l;
85 push @out, $self->msg('rec', $count);