X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdisconnect.pl;h=a023c609ee72388bcee49bed1adbaa79ab141524;hb=8825f74051743705b01f20db2127643f23edf476;hp=61ba3bf49ed59f22eacdf5f3cd33584cf11c7fc9;hpb=f155969d600561b9ef151a7ce2494a0c89aed033;p=spider.git diff --git a/cmd/disconnect.pl b/cmd/disconnect.pl index 61ba3bf4..a023c609 100644 --- a/cmd/disconnect.pl +++ b/cmd/disconnect.pl @@ -16,13 +16,22 @@ foreach $call (@calls) { my $dxchan = DXChannel->get($call); if ($dxchan) { if ($dxchan->is_node) { -# $dxchan->send_now("D", DXProt::pc39($main::mycall, $self->msg('disc1', $self->call))); +# $dxchan->send_pc39($self->msg('disc1', $self->call)); } else { return (1, $self->msg('e5')) if $self->priv < 8; $dxchan->send_now('D', $self->msg('disc1', $self->call)); } $dxchan->disconnect; push @out, $self->msg('disc2', $call); + } elsif (my $conn = Msg->conns($call)) { + $conn->disconnect; + push @out, $self->msg('disc3', $call); +# } elsif (my $ref = DXCluster->get_exact($call)) { +# my $dxchancall = $ref->dxchancall; +# if ($dxchancall eq $main::mycall || !DXChannel->get($dxchancall)) { +# $ref->del; +# push @out, $self->msg('disc4', $call); +# } } else { push @out, $self->msg('e10', $call); }