]> dxcluster.org Git - spider.git/commitdiff
*** empty log message ***
authordjk <djk>
Sat, 30 Oct 1999 16:39:47 +0000 (16:39 +0000)
committerdjk <djk>
Sat, 30 Oct 1999 16:39:47 +0000 (16:39 +0000)
cmd/set/badnode.pl [new file with mode: 0644]
cmd/show/badnode.pl [new file with mode: 0644]

diff --git a/cmd/set/badnode.pl b/cmd/set/badnode.pl
new file mode 100644 (file)
index 0000000..13d91e7
--- /dev/null
@@ -0,0 +1,17 @@
+#
+# set 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) {
+       my $call = uc $_;
+       push @DXProt::nodx_node, $call;
+       push @out, "$call is now a badnode";
+}
+return (1, @out);
diff --git a/cmd/show/badnode.pl b/cmd/show/badnode.pl
new file mode 100644 (file)
index 0000000..e13e6c2
--- /dev/null
@@ -0,0 +1,14 @@
+#
+# show list of bad nodes
+#
+# Copyright (c) 1998 - Dirk Koopman G1TLH
+#
+# $Id$
+#
+my ($self, $line) = @_;
+return (1, $self->msg('e5')) if $self->priv < 6;
+my @out;
+for (@DXProt::nodx_node) {
+       push @out, "$_ is a badnode";
+}
+return (1, @out);