put duplicate checking into respective modules and out of DXProt.
[spider.git] / cmd / announce.pl
index 120170399ad6ae17fb1a0f8021b26141e77df62a..94b03a473009da82db0e89a8345df4a55f316c84 100644 (file)
@@ -46,6 +46,7 @@ if ($sort eq "FULL") {
 # change ^ into : for transmission
 $line =~ s/\^/:/og;
 
+return (1, $self->msg('dup')) if AnnTalk::dup($from, $to, $line);
 Log('ann', $to, $from, $line);
 DXProt::broadcast_list("To $to de $from <$t>: $line", 'ann', undef, @locals);
 if ($to ne "LOCAL") {