X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FBBS.pm;h=25b5f1f22e739f34cd4e9f8f80b5eb3af29a1df0;hb=refs%2Fheads%2Fstaging;hp=e2920a476f23d3fa21bde78e71f23b6bc202162e;hpb=6b19958cbe351af8d5462f4e0e03b87875eec16a;p=spider.git diff --git a/perl/BBS.pm b/perl/BBS.pm index e2920a47..25b5f1f2 100644 --- a/perl/BBS.pm +++ b/perl/BBS.pm @@ -6,7 +6,7 @@ # # Copyright (c) 1999 - Dirk Koopman G1TLH # -# $Id$ +# # package BBS; @@ -15,12 +15,11 @@ use strict; use DXUser; use DXChannel; use DB_File; -use Carp; +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; +