From dbf603084915189ec6e853e674d55688b93ff0d9 Mon Sep 17 00:00:00 2001 From: minima Date: Wed, 3 Jan 2007 11:41:35 +0000 Subject: [PATCH] fix init list and add pc92a/d to pc16/17 handlers --- perl/DXProt.pm | 2 +- perl/DXProtHandle.pm | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/perl/DXProt.pm b/perl/DXProt.pm index ba4f21d9..1da81e95 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -771,7 +771,7 @@ sub send_pc92_config dbg('DXProt::send_pc92_config') if isdbg('trace'); # send 'my' configuration for all users and pc92 capable nodes - my @dxchan = grep { $_->call ne $main::mycall && $_ != $self && !$_->{isolate} && $self->{do_pc92} } DXChannel::get_all(); + my @dxchan = grep { $_->call ne $main::mycall && $_ != $self && !$_->{isolate} && $_->{do_pc92} } DXChannel::get_all(); my @localnodes = map { my $r = Route::get($_->{call}); $r ? $r : () } @dxchan; $self->send_route_pc92($main::mycall, \&pc92c, scalar @localnodes, @localnodes); diff --git a/perl/DXProtHandle.pm b/perl/DXProtHandle.pm index 5715902c..20eb37e4 100644 --- a/perl/DXProtHandle.pm +++ b/perl/DXProtHandle.pm @@ -473,8 +473,10 @@ sub handle_16 $user->lastin($main::systime) unless DXChannel::get($call); $user->put; } - $self->route_pc16($origin, $line, $parent, @rout) if @rout; - + if (@rout) { + $self->route_pc16($origin, $line, $parent, @rout); + $self->route_pc92a($main::mycall, undef, $parent, @rout); + } } # remove a user @@ -541,6 +543,7 @@ sub handle_17 $uref = Route->new($ucall) unless $uref; # throw away $self->route_pc17($origin, $line, $parent, $uref); + $self->route_pc92d($main::mycall, undef, $parent, $uref); } # link request -- 2.34.1