Change DXUser->get* to DXUser::get*
[spider.git] / cmd / stat / user.pl
index 997ae542b6bbcf9fe9f5785320396a352c44bf66..5cb57f29dd3b4e4ce6c06cd81372a3f1c4e705c8 100644 (file)
@@ -1,24 +1,28 @@
 #
 # show either the current user or a nominated set
 #
-# $Id$
+#
 #
 
 my ($self, $line) = @_;
-my @list = split /\s+/, $line;               # generate a list of callsigns
-@list = ($self->call) if !@list;  # my channel if no callsigns
+my @list = split /\s+/, $line; # generate a list of callsigns
+@list = ($self->call) if !@list; # my channel if no callsigns
 
 my $call;
 my @out;
 foreach $call (@list) {
-  $call = uc $call;
-  my $ref = DXUser->get_current($call);
-  if ($ref) {
-    @out = print_all_fields($self, $ref, "User Information $call");
-  } else {
-    push @out, "User: $call not found";
-  }
-  push @out, "" if @list > 1;
+       $call = uc $call;
+       my $ref = DXUser::get_current($call);
+       if ($ref) {
+               if ($self->consort eq 'ax25') {
+                       @out = grep { !/(Password|Privilege)/ } print_all_fields($self, $ref, "User Information $call");
+               } else {
+                       @out = print_all_fields($self, $ref, "User Information $call");
+               }
+       } else {
+               push @out, "User: $call not found";
+       }
+       push @out, "" if @list > 1;
 }
 
 return (1, @out);