fleshed out some commands (particularly flag setting and unsetting)
[spider.git] / cmd / show / user.pl
1 #
2 # show either the current user or a nominated set
3 #
4 # $Id$
5 #
6
7 my ($self, $line) = @_;
8 my @list = split /\s+/, $line;                # generate a list of callsigns
9 @list = ($self->call) if !@list;  # my channel if no callsigns
10
11 my $call;
12 my @out;
13 foreach $call (@list) {
14   $call = uc $call;
15   my $ref = DXUser->get($call);
16   if ($ref) {
17     @out = print_all_fields($self, $ref, "User Information $call");
18   } else {
19     push @out, "User: $call not found";
20   }
21   push @out, "" if @list > 1;
22 }
23
24 return (1, @out);