X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FSpot.pm;h=9a4b97249b46ab1516e50567aad96c4ede332a2c;hb=90d957b802f7b48c10a98521a5c7ca387d2fa1c0;hp=d52575afbcc8ce25a1870aff607e8da1356c1443;hpb=50c5cbb346de7d1b5026e8a205b5cf1e04e6cf05;p=spider.git diff --git a/perl/Spot.pm b/perl/Spot.pm index d52575af..9a4b9724 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -343,13 +343,21 @@ 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; my $ldupkey = "X$freq|$call|$by|$text"; my $t = DXDupe::find($ldupkey); return 1 if $t && $t - $main::systime > 0; - DXDupe::add($ldupkey, $main::systime+$dupage); + if ($otext) { + 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;