try fix node type changes from outside
[spider.git] / cmd / set / node.pl
index 8a1f811170eb7baec3fc02940665dfeb67ad5197..185f906c7752db1fbd87f06e64c865867d67bd18 100644 (file)
@@ -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);