X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fnode.pl;h=8a1f811170eb7baec3fc02940665dfeb67ad5197;hb=ab811a0c902225075a9bd69749f65594079433a9;hp=5c9b00fafd28d6021126007613f44d32282e0b0f;hpb=f155969d600561b9ef151a7ce2494a0c89aed033;p=spider.git diff --git a/cmd/set/node.pl b/cmd/set/node.pl index 5c9b00fa..8a1f8111 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,16 +19,17 @@ return (1, $self->msg('e5')) if $self->priv < 5; foreach $call (@args) { $call = uc $call; - my $chan = DXChannel->get($call); + 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 ? 'nodeac' : 'nodea', $call);