spider/cmd/stat/cluster.pl

25 lines
493 B
Perl

#
# show a cluster thingy
#
# $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 $call;
my @out;
foreach $call (@list) {
$call = uc $call;
my $ref = DXCluster->get_exact($call);
if ($ref) {
@out = print_all_fields($self, $ref, "Cluster Information $call");
} else {
push @out, "Cluster: $call not found";
}
push @out, "" if @list > 1;
}
return (1, @out);