X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProtHandle.pm;h=cb13e37c652b77ba86d7b5ab0332a6c482c8a5fe;hb=a48eea32af123b571889f70a3e7cef8e157cf389;hp=e7160d7cb7148b0e59e5a809cd63258163f0e7b4;hpb=ab811a0c902225075a9bd69749f65594079433a9;p=spider.git diff --git a/perl/DXProtHandle.pm b/perl/DXProtHandle.pm index e7160d7c..cb13e37c 100644 --- a/perl/DXProtHandle.pm +++ b/perl/DXProtHandle.pm @@ -46,6 +46,7 @@ use vars qw($pc11_max_age $pc23_max_age $last_pc50 $eph_restime $eph_info_restim $eph_pc15_restime $pc9x_past_age $pc9x_dupe_age $pc10_dupe_age $pc92_slug_changes $last_pc92_slug $pc92Ain $pc92Cin $pc92Din $pc92Kin $pc9x_time_tolerance + $pc92filterdef ); $pc9x_dupe_age = 60; # catch loops of circular (usually) D records @@ -57,6 +58,15 @@ $pc9x_past_age = (122*60)+ # maximum age in the past of a px9x (a config record $pc9x_time_tolerance; # thing a node might send - once an hour and we allow an extra hour for luck) # this is actually the partition between "yesterday" and "today" but old. +$pc92filterdef = bless ([ + # tag, sort, field, priv, special parser + ['call', 'c', 0], + ['by', 'c', 0], + ['dxcc', 'nc', 1], + ['itu', 'ni', 2], + ['zone', 'nz', 3], + ], 'Filter::Cmd'); + # incoming talk commands sub handle_10 @@ -1709,7 +1719,7 @@ sub handle_92 } } elsif ($sort eq 'K') { - $pc92Kin += length $line if $sort eq 'K'; + $pc92Kin += length $line; # remember the last channel we arrived on $parent->PC92C_dxchan($self->{call}) unless $self->{call} eq $parent->call;