fix ssid handling on (un)set/badnode.pl
[spider.git] / cmd / set / badnode.pl
index bcd4679cf3a9c997282fff497ce19216529cb2be..6ac5b3981916e0714f15c136e2daa410c4351d37 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->set(8, $self->msg('e12'), $self, $line);