X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fnode.pl;h=185f906c7752db1fbd87f06e64c865867d67bd18;hb=bb3889c1d4930e2ca96b47aea10ce5e803737043;hp=0895b20c9bfa497423395ed48d5ff48402dc3d64;hpb=661d49731a7ac57ce2883ef5d757c7a8144fb6ff;p=spider.git diff --git a/cmd/set/node.pl b/cmd/set/node.pl index 0895b20c..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,18 +19,28 @@ 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) { $user->sort('A'); $user->homenode($call); + $user->lockout(0); + $user->priv(1) unless $user->priv; $user->close(); - push @out, $self->msg($create ? 'nodec' : 'node', $call); + push @out, $self->msg($create ? 'nodeac' : 'nodea', $call); } else { push @out, $self->msg('e3', "Set Node", $call); }