ones).
2. Have only one is_callsign and not an iscallsign as well.
3. Add set/hops and show/hops commands.
+4. Add unset/badnode command and put some help in for these commands
03Nov00=======================================================================
1. allow - in filter strings
2. store only the filter expression NOTE BENE: you will need to clear all
=== 5^SET/ARCLUSTER <call> [<call>..]^Make the callsign an AR-Cluster node
+=== 6^SET/BADNODE <call>^Stop spots from this callsign being propagated
+=== 6^UNSET/BADNODE <call>^Allow spots from this callsign again
+Setting a callsign as a 'badnode' will prevent spots from that node
+going any further. They will not be displayed and they will not be
+sent onto other nodes.
+
+The call can be a full or partial call (or a prefix), eg:-
+
+ set/badnode K1TTT
+
+will stop anything from K1TTT (including any SSID's)
+
+ unset/badnode K1TTT
+
+will allow spots from him again.
+
+Use with extreme care. This command may well be superceeded by FILTERing.
+
=== 0^SET/BEEP^Add a beep to DX and other messages on your terminal
=== 0^UNSET/BEEP^Stop beeps for DX and other messages on your terminal
=== 0^SET/WX^Allow WX messages to come out on your terminal
=== 0^UNSET/WX^Stop WX messages coming out on your terminal
+=== 6^SHOW/BADNODE^Show all the bad nodes in the system
+Display all the bad node callsigns in the system, see SET/BADNODE
+for more information.
+
=== 0^SHOW/CALL <callsign>^Show any callbook details on a callsign
This command queries an international callbook server on the internet
and returns any information available for that callsign.
my @f = split /\s+/, $line;
my @out;
for (@f) {
+ return (1, $self->msg('e19')) if /[^\s\w_\-\/]/;
my $call = uc $_;
push @DXProt::nodx_node, $call;
- push @out, "$call is now a badnode";
+ push @out, $self->msg('badnode1', $call);
}
return (1, @out);
#
my ($self, $line) = @_;
return (1, $self->msg('e5')) if $self->priv < 6;
-my @out;
+my @out = ($self->msg('badnode3'));
for (@DXProt::nodx_node) {
- push @out, "$_ is a badnode";
+ push @out, $_;
}
return (1, @out);
--- /dev/null
+#
+# unset list of bad nodes
+#
+# Copyright (c) 1998 - Dirk Koopman G1TLH
+#
+# $Id$
+#
+my ($self, $line) = @_;
+return (1, $self->msg('e5')) if $self->priv < 6;
+my @f = split /\s+/, $line;
+my @out;
+for (@f) {
+ return (1, $self->msg('e19')) if /[^\s\w_\-\/]/;
+ my $call = uc $_;
+ @DXProt::nodx_node = grep { !$call =~ /^$_/ } @DXProt::nodx_node;
+ push @out, $self->msg('badnode2', $call);
+}
+return (1, @out);
already => '$_[0] already connnected',
anns => 'Announce flag set on $_[0]',
annu => 'Announce flag unset on $_[0]',
+ badnode1 => '$_[0] is now a bad node',
+ badnode2 => '$_[0] is now a good node',
+ badnode3 => 'List of Bad Nodes:-',
bbse1 => 'Please enter your BBS address,, set/bbs <your bbs address>',
bbs => 'Your BBS Address is now \"$_[0]\"',
beepoff => 'Beeps are now off',