pre 1.13 release
[spider.git] / cmd / load / hops.pl
diff --git a/cmd/load/hops.pl b/cmd/load/hops.pl
new file mode 100644 (file)
index 0000000..592b792
--- /dev/null
@@ -0,0 +1,8 @@
+#
+# load the node hop count table after changing it
+#
+my $self = shift;
+return (0, $self->msg('e5')) if $self->priv < 9;
+my @out = DXProt::load_hops($self);
+@out = ($self->msg('ok')) if !@out;
+return (1, @out);