X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FSpot.pm;h=f331d105b540ae1cd2e4b414c631ffcfbf97eca4;hb=61edf37f1528fe84f1150c0b31c98d8587424fac;hp=d52575afbcc8ce25a1870aff607e8da1356c1443;hpb=50c5cbb346de7d1b5026e8a205b5cf1e04e6cf05;p=spider.git diff --git a/perl/Spot.pm b/perl/Spot.pm index d52575af..f331d105 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -343,6 +343,7 @@ sub dup $text = "" if $cty == $try[0]; } } + my $otext = $text; $text = pack("C*", map {$_ & 127} unpack("C*", $text)); $text =~ s/[^\w]//g; $text = substr($text, 0, $duplth) if length $text > $duplth; @@ -350,6 +351,11 @@ sub dup my $t = DXDupe::find($ldupkey); return 1 if $t && $t - $main::systime > 0; DXDupe::add($ldupkey, $main::systime+$dupage); + $otext = substr($otext, 0, $duplth) if length $otext > $duplth; + $ldupkey = "X$freq|$call|$by|$otext"; + $t = DXDupe::find($ldupkey); + return 1 if $t && $t - $main::systime > 0; + DXDupe::add($ldupkey, $main::systime+$dupage); # my $sdupkey = "X$freq|$call|$by"; # $t = DXDupe::find($sdupkey); # return 1 if $t && $t - $main::systime > 0;