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
sub new
{
my $self = DXChannel::alloc(@_);
- $self->{'sort'} = 'B';
return $self;
}
}
} elsif ($com =~ /^F/) {
$self->disconnect;
- } elsif ($com =~ /^(B|Q)) {
+ } elsif ($com =~ /^(B|Q)/) {
$self->disconnect;
}
}
#
# end a connection (called by disconnect)
#
-sub finish
+sub disconnect
{
my $self = shift;
my $call = $self->call;
Log('BBS', "$call", "disconnected");
+ $self->SUPER::disconnect;
}
#