X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=cmd%2Fstat%2Fpc19list.pl;fp=cmd%2Fstat%2Fpc19list.pl;h=58623cdba877362c16f5941f8a4ac8c2bd691511;hb=a204e3cd89e849e97db25879b4ddf62b770bd227;hp=0000000000000000000000000000000000000000;hpb=2145c6711ead2e9bc0e599044343c5c9064c3ddc;p=spider.git diff --git a/cmd/stat/pc19list.pl b/cmd/stat/pc19list.pl new file mode 100644 index 00000000..58623cdb --- /dev/null +++ b/cmd/stat/pc19list.pl @@ -0,0 +1,23 @@ +# +# list out the PC19s that are outstanding (for which PC16s have not been seen) +# +# Copyright (c) 2003 Dirk Koopman G1TLH +# +# $Id$ +# + +my $self = shift; +return (1, $self->msg('e5')) unless $self->priv >= 9; + +my @patt = map {"^\Q$_"} split /\s+/, uc shift; +my @out; + +foreach my $k (sort keys %DXProt::pc19list) { + if (!@patt || grep $k =~ /$_/, @patt) { + my $nl = $DXProt::pc19list{$k}; + push @out, "$k: " . join (', ', map {"via $_->[0]($_->[1] $_->[2])"} @$nl); + } +} + +return (1, @out); +