X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FSpot.pm;fp=perl%2FSpot.pm;h=d52575afbcc8ce25a1870aff607e8da1356c1443;hb=50c5cbb346de7d1b5026e8a205b5cf1e04e6cf05;hp=112fcffed0565c8a9cd4010f4ab05ac52deb5972;hpb=7164420237fb9562d3bee94eb8b6dfad73facbaf;p=spider.git diff --git a/perl/Spot.pm b/perl/Spot.pm index 112fcffe..d52575af 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -343,9 +343,9 @@ sub dup $text = "" if $cty == $try[0]; } } - $text = substr($text, 0, $duplth) if length $text > $duplth; $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;