fix ssid handling on (un)set/badnode.pl
[spider.git] / cmd / unset / badnode.pl
index 65d105274f6fabc51760c25734ba8ae532129c91..c104be27fc52597a64dd5a8762da9451c9233551 100644 (file)
@@ -3,8 +3,12 @@
 #
 # Copyright (c) 1998 - Dirk Koopman G1TLH
 #
-# $Id$
+#
 #
 my ($self, $line) = @_;
+return (1, $self->msg('e5')) if $self->remotecmd;
+# are we permitted?
+return (1, $self->msg('e5')) if $self->priv < 6;
+#$line = join(' ', map {s|[/-]\d+$||; $_} split(/\s+/, $line));
 return $DXProt::badnode->unset(8, $self->msg('e12'), $self, $line);