5. fix talkmode so that it only does 'via' PC10s when it really needs to.
[spider.git] / cmd / announce.pl
index 120170399ad6ae17fb1a0f8021b26141e77df62a..494cd9ddfaa3c9c5179d418ea21b5c38e9c321e9 100644 (file)
@@ -17,7 +17,7 @@
 
 my ($self, $line) = @_;
 my @f = split /\s+/, $line;
-
+return (1, $self->msg('e5')) if $self->remotecmd;
 return (1, $self->msg('e9')) if !@f;
 
 my $sort = uc $f[0];
@@ -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") {