package Thingy::Dx;
use vars qw($VERSION $BRANCH);
-$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
-$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
-$main::build += $VERSION;
-$main::branch += $BRANCH;
+
+main::mkver($VERSION = q$Revision$);
use DXChannel;
use DXDebug;
if ($dxchan->{ve7cc}) {
$buf = VE7CC::dx_spot($dxchan, $thing->{spotdata});
} else {
- $buf = $dxchan->format_dx_spot($thing->{spotdata});
+ $buf = Spot::format_dx_spot($dxchan, $thing->{spotdata});
$buf .= "\a\a" if $dxchan->{beep};
$buf =~ s/\%5E/^/g;
}
my $thing = shift;
my $dxchan = shift;
- # global spot filtering on INPUT
- if ($dxchan->{inspotsfilter}) {
- my ($filter, $hops) = $dxchan->{inspotsfilter}->it($thing->{spotdata});
+ # global spot filtering on OUTPUT
+ if ($dxchan->{spotsfilter}) {
+ my ($filter, $hops) = $dxchan->{spotsfilter}->it($thing->{spotdata});
unless ($filter) {
- dbg("PCPROT: Rejected by input spot filter") if isdbg('chanerr');
+ dbg("PCPROT: Rejected by output spot filter") if isdbg('chanerr');
return;
}
$thing->{hops} = $hops if $hops;