X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fspider.pl;h=28a91a12e50d045e8df2013426b8036c1f642538;hb=a24cc09d8262093df92c767d3010c0a5fd6e42d7;hp=946d92d2e2db69cb13fcc7ca3caa98043bdf8086;hpb=f155969d600561b9ef151a7ce2494a0c89aed033;p=spider.git diff --git a/cmd/set/spider.pl b/cmd/set/spider.pl index 946d92d2..28a91a12 100644 --- a/cmd/set/spider.pl +++ b/cmd/set/spider.pl @@ -5,7 +5,7 @@ # # Copyright (c) 1998 - Dirk Koopman # -# $Id$ +# # my ($self, $line) = @_; @@ -19,16 +19,25 @@ 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('S'); $user->homenode($call); + $user->lockout(0); $user->priv(1) unless $user->priv; $user->close(); push @out, $self->msg($create ? 'nodesc' : 'nodes', $call);