X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fdxnet.pl;h=3eadff0bfad1af3738dc1adabc883d0c9dbd917a;hb=9b65e70322b24190bb5f677ccedcc000ab4625d2;hp=e8714c53b82e3f930a4aa9a77ce83da144167804;hpb=fe7780b7eb15406a7e5caac4ecc499c8f3304e18;p=spider.git diff --git a/cmd/set/dxnet.pl b/cmd/set/dxnet.pl index e8714c53..3eadff0b 100644 --- a/cmd/set/dxnet.pl +++ b/cmd/set/dxnet.pl @@ -1,11 +1,11 @@ # -# set user type to 'S' for Spider node +# set user type to 'X' for DXNet node # # Please note that this is only effective if the user is not on-line # # 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; + 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) {