X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FAnnTalk.pm;h=72abfeb283c6bf35b6dbb839f999e3bf96259289;hb=d44eaf6ad528386e7f8aa0457e40c302046e23b2;hp=0090eb04824581d567903654a87fb90a87b005bb;hpb=d2580480d24be5e8f1beb4aeeb40980db0dedde0;p=spider.git diff --git a/perl/AnnTalk.pm b/perl/AnnTalk.pm index 0090eb04..72abfeb2 100644 --- a/perl/AnnTalk.pm +++ b/perl/AnnTalk.pm @@ -3,7 +3,7 @@ # # Copyright (c) 2000 Dirk Koopman # -# $Id$ +# # package AnnTalk; @@ -18,7 +18,7 @@ use DXVars; use vars qw(%dup $duplth $dupage $filterdef); $duplth = 60; # the length of text to use in the deduping -$dupage = 5*24*3600; # the length of time to hold spot dups +$dupage = 5*3600; # the length of time to hold spot dups $filterdef = bless ([ # tag, sort, field, priv, special parser ['by', 'c', 0], @@ -51,7 +51,7 @@ sub dup $text = pack("C*", map {$_ & 127} unpack("C*", $text)); $text =~ s/[^\#a-zA-Z0-9]//g; $text = substr($text, 0, $duplth) if length $text > $duplth; - my $dupkey = "A$to|\L$text"; + my $dupkey = "A$call|$to|\L$text"; return DXDupe::check($dupkey, $t); }