X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;ds=inline;f=cmd%2Fstat%2Fchannel.pl;fp=cmd%2Fstat%2Fchannel.pl;h=147c150af6bd307e71261e4ef547aae2df306f98;hb=2546ef0cfaaca39e65985e414258071a636979af;hp=0000000000000000000000000000000000000000;hpb=fdc1150da7dbd9c1094d8df7a4744fb917017ed2;p=spider.git diff --git a/cmd/stat/channel.pl b/cmd/stat/channel.pl new file mode 100644 index 00000000..147c150a --- /dev/null +++ b/cmd/stat/channel.pl @@ -0,0 +1,27 @@ +# +# show the channel status +# +# $Id$ +# + +use strict; +my ($self, $line) = @_; +my @list = split /\s+/, $line; # generate a list of callsigns +@list = ($self->call) if !@list || $self->priv < 9; # my channel if no callsigns + +my $call; +my @out; +foreach $call (@list) { + $call = uc $call; + my $ref = DXChannel->get($call); + if ($ref) { + @out = print_all_fields($self, $ref, "Channe Information $call"); + } else { + return (0, "Channel: $call not found") if !$ref; + } + push @out, "" if @list > 1; +} + +return (1, @out); + +