2 # Announce and Talk Handling routines
4 # Copyright (c) 2000 Dirk Koopman
18 use vars qw(%dup $duplth $dupage);
20 $duplth = 60; # the length of text to use in the deduping
21 $dupage = 5*24*3600; # the length of time to hold spot dups
24 # enter the spot for dup checking and return true if it is already a dup
27 my ($call, $to, $text) = @_;
31 $text =~ s/[^a-zA-Z0-9]//g;
32 $text = substr($text, 0, $duplth) if length $text > $duplth;
33 my $dupkey = "A$to|\L$text";
34 return DXDupe::check($dupkey, $main::systime + $dupage);
39 return DXDupe::listdups('A', $dupage, @_);