make the major mod to make PC16 the master record for triggering the update
[spider.git] / cmd / stat / pc19list.pl
diff --git a/cmd/stat/pc19list.pl b/cmd/stat/pc19list.pl
new file mode 100644 (file)
index 0000000..58623cd
--- /dev/null
@@ -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);
+