X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FBBS.pm;h=9785876fee1e4814c50443049cee76e660b62675;hb=b9dffeff7239952814342dad19db3a51def6fab7;hp=68bf4314b0af022a6f554ea26b03a05d8121b1ab;hpb=0bd9d2811cc42417676a1b11b121681c2377d70a;p=spider.git diff --git a/perl/BBS.pm b/perl/BBS.pm index 68bf4314..9785876f 100644 --- a/perl/BBS.pm +++ b/perl/BBS.pm @@ -16,11 +16,10 @@ use DXUser; 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 @@ -39,7 +38,6 @@ sub init sub new { my $self = DXChannel::alloc(@_); - $self->{'sort'} = 'B'; return $self; } @@ -116,7 +114,7 @@ sub normal } } elsif ($com =~ /^F/) { $self->disconnect; - } elsif ($com =~ /^(B|Q)) { + } elsif ($com =~ /^(B|Q)/) { $self->disconnect; } } @@ -124,11 +122,12 @@ sub normal # # end a connection (called by disconnect) # -sub finish +sub disconnect { my $self = shift; my $call = $self->call; Log('BBS', "$call", "disconnected"); + $self->SUPER::disconnect; } # @@ -140,3 +139,5 @@ sub process } +1; +