X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdisconnect.pl;h=9acf0ce336fa5f37d5621b80139803097187c67b;hb=a6e52cc1680c2c30ef874e2e6c16d00c956624ee;hp=9e6b67dff927a521d5cb7db530927cf6aec8ef4d;hpb=586cbb347e7639f5575b48572e75140501a109c0;p=spider.git diff --git a/cmd/disconnect.pl b/cmd/disconnect.pl index 9e6b67df..9acf0ce3 100644 --- a/cmd/disconnect.pl +++ b/cmd/disconnect.pl @@ -25,6 +25,13 @@ foreach $call (@calls) { 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); }