4 # show all registered users
6 # Copyright (c) 2001 Dirk Koopman G1TLH
13 my ($self, $line) = @_;
14 return (1, $self->msg('e5')) unless $self->priv >= 9;
21 $line =~ s/[^\w\-\/]+//g;
25 if ($self->{_nospawn}) {
26 @out = generate($self, $line);
28 @out = $self->spawn_cmd("show/registered $line", sub { return (generate($self, $line)); });
42 my ($action, $count, $key, $data) = (0,0,0,0);
43 eval qq{for (\$action = DXUser::R_FIRST, \$count = 0; !\$DXUser::dbm->seq(\$key, \$data, \$action); \$action = DXUser::R_NEXT) {
44 if (\$data =~ m{registered}) {
45 if (!\$line || (\$line && \$key =~ /^$line/)) {
46 my \$u = DXUser::get_current(\$key);
47 if (\$u && \$u->registered) {
55 foreach my $call (@val) {
57 push @out, sprintf "%-12s %-12s %-12s %-12s %-12s", @l;
63 push @l, "" while @l < 5;
64 push @out, sprintf "%-12s %-12s %-12s %-12s %-12s", @l;
68 push @out, , $self->msg('rec', $count);