try fix node type changes from outside
[spider.git] / cmd / set / dxnet.pl
index 6d2011364cacb64e429591baf72c900b91516301..3eadff0bfad1af3738dc1adabc883d0c9dbd917a 100644 (file)
@@ -1,5 +1,5 @@
 #
-# set user type to 'S' for Spider node
+# set user type to 'X' for DXNet node
 #
 # Please note that this is only effective if the user is not on-line
 #
@@ -19,6 +19,14 @@ return (1, $self->msg('e5')) if $self->priv < 5;
 
 foreach $call (@args) {
        $call = uc $call;
+       if ($call eq $main::mycall) {
+               push @out, $self->msg('e11', $call);
+               next;
+       }
+       if ($call eq $main::myalias) {
+               push @out, $self->msg('e11', $call);
+               next;
+       }
        my $chan = DXChannel::get($call);
        if ($chan) {
                push @out, $self->msg('nodee1', $call);