X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fnode.pl;h=185f906c7752db1fbd87f06e64c865867d67bd18;hb=9fb58f4a25e7a22bd8ef1dbf1c7836d00e955401;hp=4eeae7f1ea9db2230c9b60f0e2ae6d8711495c7e;hpb=2a43619b670b8f9249558f814b0183262c3ba4f6;p=spider.git diff --git a/cmd/set/node.pl b/cmd/set/node.pl index 4eeae7f1..185f906c 100644 --- a/cmd/set/node.pl +++ b/cmd/set/node.pl @@ -5,7 +5,7 @@ # # Copyright (c) 1998 - Dirk Koopman # -# $Id$ +# # my ($self, $line) = @_; @@ -19,11 +19,19 @@ return (1, $self->msg('e5')) if $self->priv < 5; foreach $call (@args) { $call = uc $call; - my $chan = DXChannel->get($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); } else { - $user = DXUser->get($call); + $user = DXUser::get($call); $create = !$user; $user = DXUser->new($call) if $create; if ($user) {