+11Apr01=======================================================================
+1. fixed more of the "xxx disappeared from yyy" messages
+2. altered the build no logic so that it always checksums the same files
+regardless of whatever else you might have in the directory.
10Apr01=======================================================================
1. altered PC21 logic somewhat to eliminate dup PC21s
2. disconnect should remove dangling local users in the routing table.
use DXChannel;
use DB_File;
use DXDebug;
+use vars qw (@ISA %bid $bidfn $lastbidclean $bidcleanint %hash $maxbidage);
@ISA = qw(DXChannel);
-use vars qw (%bid $bidfn $lastbidclean $bidcleanint);
-
%bid = (); # the bid hash
$bidfn = "$main::root/msg/bid"; # the bid file filename
$lastbidclean = time; # the last time the bid file was cleaned
}
} elsif ($com =~ /^F/) {
$self->disconnect;
- } elsif ($com =~ /^(B|Q)) {
+ } elsif ($com =~ /^(B|Q)/) {
$self->disconnect;
}
}
$systime = time;
}
+use DXVars;
use Msg;
use IntMsg;
+use Internet;
+use Listeners;
use ExtMsg;
+use AGWConnect;
use AGWMsg;
-use DXVars;
use DXDebug;
use DXLog;
use DXLogPrint;
use DXUser;
use DXM;
use DXCommandmode;
+use DXProtVars;
+use DXProtout;
use DXProt;
use DXMsg;
use DXCluster;
use DXCron;
use DXConnect;
+use DXBearing;
+use DXDb;
+use DXHash;
+use DXDupe;
use Prefix;
use Bands;
+use Keps;
+use Minimuf;
+use Sun;
use Geomag;
use CmdAlias;
use Filter;
-use DXDb;
use AnnTalk;
+use BBS;
use WCY;
-use DXDupe;
use BadWords;
+use Timer;
use Data::Dumper;
use IO::File;
# calculate build number
$build = $main::version;
-if (opendir(DIR, "$main::root/perl")) {
- my @d = readdir(DIR);
- closedir(DIR);
- foreach my $fn (@d) {
- if ($fn =~ /^cluster\.pl$/ || $fn =~ /\.pm$/) {
- my $f = new IO::File "$main::root/perl/$fn" or next;
- while (<$f>) {
- if (/^#\s+\$Id:\s+[\w\._]+,v\s+(\d+\.\d+)/ ) {
- $build += $1;
- last;
- }
- }
- $f->close;
+my @fn;
+open(CL, "$main::root/perl/cluster.pl") or die "Cannot open cluster.pl $!";
+while (<CL>) {
+ next unless /^use\s+([\w:_]+)/;
+ push @fn, $1;
+}
+close CL;
+foreach my $fn (@fn) {
+ open(CL, "$main::root/perl/${fn}.pm") or next;
+ while (<CL>) {
+ if (/^#\s+\$Id:\s+[\w\._]+,v\s+(\d+\.\d+)/ ) {
+ $build += $1;
+ last;
}
}
+ close CL;
}
Log('cluster', "DXSpider V$version, build $build started");
DXUser->init($userfn, 1);
# start listening for incoming messages/connects
-use Listeners;
-
dbg('err', "starting listeners ...");
my $conn = IntMsg->new_server($clusteraddr, $clusterport, \&login);
$conn->conns("Server $clusteraddr/$clusterport");