add RBN filtering
[spider.git] / cmd / show / filter.pl
index 345603b847456060293214f153246e4ad3f02b45..ccfbc48583c980a12ee2999e8757775f9230ac1b 100644 (file)
@@ -3,17 +3,19 @@
 #
 # Copyright (c) 2000 Dirk Koopman G1TLH
 #
-# $Id$
+#
 #
 my ($self, $line) = @_;
 my @f = split /\s+/, $line;
 my @out;
 my $call = $self->call;
 
-if (@f && $self->priv >= 8) {
+if (@f) {
        if (is_callsign(uc $f[0])) {
+               return (1, $self->msg('e5')) unless $self->priv >= 1;
                $call = uc shift @f;
     } elsif ($f[0] eq 'node_default' || $f[0] eq 'user_default') {
+               return (1, $self->msg('e5')) unless $self->priv >= 1;
                $call = shift @f;
        }
 }
@@ -22,7 +24,7 @@ my @in;
 if (@f) {
        push @in, @f;
 } else {
-       push @in, qw(ann spots wcy wwv);
+       push @in, qw(route ann spots wcy wwv rbn);
 }
 
 my $sort;