my $user = DXUser->get($main::mycall);
die "User $main::mycall not setup or disappeared RTFM" unless $user;
- $myprot_version += $main::version*100;
$main::me = DXProt->new($main::mycall, 0, $user);
$main::me->{here} = 1;
$main::me->{state} = "indifferent";
$main::me->{metric} = 0;
$main::me->{pingave} = 0;
$main::me->{registered} = 1;
- $main::me->{version} = 5252 + $main::version;
+ $main::me->{version} = $myprot_version + int ($main::version * 100);
$main::me->{build} = $main::build;
$main::me->{lastcf} = $main::me->{lasthello} = time;
}
my $thing = Thingy::Rt->new(user=>$self->{call});
my $nref = Route::Node::get($self->{call});
$thing->copy_pc16_data($nref);
- $thing->broadcast;
-
+ $thing->broadcast($self);
$self->lastcf($main::systime);
}
my $thing = Thingy::Rt->new(user=>$self->{call});
my $nref = Route::Node::get($self->{call});
$thing->copy_pc16_data($nref);
- $thing->broadcast;
+ $thing->broadcast($self);
$self->lastcf($main::systime);
}
# Request init string
sub pc18
{
- my $v = $DXProt::myprot_version + $main::version;
+ my $v = $DXProt::myprot_version + int($main::version * 100);
return "PC18^DXSpider Version: $main::version Build: $main::build^$v^";
}
Aranea->init();
# put in a DXCluster node for us here so we can add users and take them away
-$routeroot = Route::Node->new($mycall, $version*100+5252, $main::me->here);
+$routeroot = Route::Node->new($mycall, int($version*100)+$DXProt::myprot_version, $main::me->here);
# make sure that there is a routing OUTPUT node default file
#unless (Filter::read_in('route', 'node_default', 0)) {