X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Frinit.pl;h=5c5c09254ae91fbd07426ae51a78b91f443263e0;hb=f63d598af3f797b56b8d5e23ec4ff5254192eee9;hp=93748ca1e453e8a3645e776086080a5af1e73f2a;hpb=95345d68a5a8ac618021c0786c7234258b903f6e;p=spider.git diff --git a/cmd/rinit.pl b/cmd/rinit.pl index 93748ca1..5c5c0925 100644 --- a/cmd/rinit.pl +++ b/cmd/rinit.pl @@ -3,7 +3,7 @@ # # Copyright (c) 1999 Dirk Koopman G1TLH # -# $Id$ +# # my ($self, $line) = @_; my @calls = split /\s+/, $line; @@ -15,21 +15,13 @@ return (1, $self->msg('e5')) if $self->priv < 5; foreach $call (@calls) { $call = uc $call; next if $call eq $main::mycall; - my $dxchan = DXChannel->get($call); + my $dxchan = DXChannel::get($call); if ($dxchan) { if ($dxchan->is_node) { - - # first clear out any nodes on this dxchannel - my @gonenodes = grep { $_->dxchan == $dxchan } DXNode::get_all(); - foreach my $node (@gonenodes) { - next if $node->dxchan == $DXProt::me; - next unless $node->dxchan == $dxchan; - DXProt::broadcast_ak1a(DXProt::pc21($node->call, 'Gone, re-init') , $dxchan) unless $dxchan->{isolate}; - $node->del(); - } -# $dxchan->send(DXProt::pc38()); - $dxchan->send(DXProt::pc20()); + my $parent = Route::Node::get($call); $dxchan->state('init'); + $dxchan->send_local_config; + $dxchan->send(DXProt::pc20()); push @out, $self->msg('init1', $call); } } else {