change the generatation of PC16/17 a bit
authorminima <minima>
Wed, 21 Nov 2001 15:57:53 +0000 (15:57 +0000)
committerminima <minima>
Wed, 21 Nov 2001 15:57:53 +0000 (15:57 +0000)
Changes
perl/DXCommandmode.pm

diff --git a/Changes b/Changes
index 23b416683a248da0b46c0018b05f52f8774054bc..28c98b7b08bafc678891650d05278959c6edcbdb 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,6 @@
+21Nov01=======================================================================
+1. altered the PC16/17 generation slightly to see whether this cures Roland's
+problem.
 19Nov01=======================================================================
 1. added Ducie Island to prefixes
 17Nov01=======================================================================
index 791256dc7090a45b864e1c1ca230565d43d207ee..212b9a0c4a04c25c9a131f703ed213a0440cdda3 100644 (file)
@@ -63,7 +63,10 @@ sub new
        my $pkg = shift;
        my $call = shift;
        my @rout = $main::routeroot->add_user($call, Route::here(1));
-       DXProt::route_pc16($main::me, $main::routeroot, @rout) if @rout;
+
+       # ALWAYS output the user
+       my $ref = Route::User::get($call);
+       DXProt::route_pc16($main::me, $main::routeroot, $ref) if $ref;
 
        return $self;
 }
@@ -495,13 +498,13 @@ sub disconnect
        if ($uref) {
                @rout = $main::routeroot->del_user($uref);
                dbg("B/C PC17 on $main::mycall for: $call") if isdbg('route');
+
+               # issue a pc17 to everybody interested
+               DXProt::route_pc17($main::me, $main::routeroot, $uref);
        } else {
                confess "trying to disconnect a non existant user $call";
        }
 
-       # issue a pc17 to everybody interested
-       DXProt::route_pc17($main::me, $main::routeroot, @rout) if @rout;
-
        # I was the last node visited
     $self->user->node($main::mycall);