X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=cmd%2Fstat%2Fcluster.pl;fp=cmd%2Fstat%2Fcluster.pl;h=539a1136341b9c214801e072e5e8932e8759943c;hb=30dbf70f84b53174005810f64f546d2181e1a8c6;hp=0000000000000000000000000000000000000000;hpb=8cf374587593eacd30423223278ed63df45babc6;p=spider.git diff --git a/cmd/stat/cluster.pl b/cmd/stat/cluster.pl new file mode 100644 index 00000000..539a1136 --- /dev/null +++ b/cmd/stat/cluster.pl @@ -0,0 +1,24 @@ +# +# 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);