X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fdxnet.pl;h=3eadff0bfad1af3738dc1adabc883d0c9dbd917a;hb=f63d598af3f797b56b8d5e23ec4ff5254192eee9;hp=2d184adb16a9763a3e3d0cc607e80475270b8c82;hpb=c3505bcfc922cd712bad2c20b3479cf8d1dc54fe;p=spider.git diff --git a/cmd/set/dxnet.pl b/cmd/set/dxnet.pl index 2d184adb..3eadff0b 100644 --- a/cmd/set/dxnet.pl +++ b/cmd/set/dxnet.pl @@ -1,5 +1,5 @@ # -# 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 # @@ -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) {