X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcluster.pl;h=359ab0975ddd767f923c93d0ed3fe9babe329e3d;hb=be36cf03fda7db009f463d687dd98381139703f6;hp=6ad2a0ad8b3edce0dc05fdffe3a107cb99e41938;hpb=bcf099764f49e68ef016964e420b906e7900623e;p=spider.git diff --git a/perl/cluster.pl b/perl/cluster.pl index 6ad2a0ad..359ab097 100755 --- a/perl/cluster.pl +++ b/perl/cluster.pl @@ -165,7 +165,9 @@ $build = "$build.$branch" if $branch; Log('cluster', "DXSpider V$version, build $build started"); # banner -dbg("Copyright (c) 1998-2002 Dirk Koopman G1TLH"); +my ($year) = (gmtime)[5]; +$year += 1900; +dbg("Copyright (c) 1998-$year Dirk Koopman G1TLH"); dbg("DXSpider Version $version, build $build started"); # load Prefixes @@ -267,7 +269,7 @@ DXProt->init(); 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, Route::here($main::me->here)|Route::conf($main::me->conf)); +$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)) { @@ -377,7 +379,7 @@ sub new_channel # set up the basic channel info # is there one already connected to me - locally? my $user = DXUser->get_current($call); - my $dxchan = DXChannel->get($call); + my $dxchan = DXChannel::get($call); if ($dxchan) { if ($user && $user->is_node) { already_conn($conn, $call, DXM::msg($lang, 'concluster', $call, $main::mycall)); @@ -459,13 +461,13 @@ sub cease dbg("Local::finish error $@") if $@; # disconnect nodes - foreach $dxchan (DXChannel->get_all_nodes) { + foreach $dxchan (grep {$_->is_node || $_->is_aranea} DXChannel::get_all()) { $dxchan->disconnect(2) unless $dxchan == $main::me; } Msg->event_loop(100, 0.01); # disconnect users - foreach $dxchan (DXChannel->get_all_users) { + foreach $dxchan (DXChannel::get_all_users) { $dxchan->disconnect; }