2 # do an announce message
8 # at the moment these keywords are fixed, but I dare say a file containing valid ones
11 # Copyright (c) 1998 Dirk Koopman G1TLH
15 # Modified 13Dec98 Iain Phillips G0RDI
18 my ($self, $line) = @_;
19 my @f = split /\s+/, $line;
20 return (1, $self->msg('e5')) if $self->remotecmd;
21 return (1, $self->msg('e9')) if !@f;
24 my @locals = DXCommandmode->get_all();
26 my $from = $self->call;
31 if ($sort eq "FULL") {
32 $line =~ s/^$f[0]\s+//; # remove it
34 } elsif ($sort eq "SYSOP") {
35 $line =~ s/^$f[0]\s+//; # remove it
36 @locals = map { $_->priv >= 5 ? $_ : () } @locals;
39 } elsif ($sort eq "LOCAL") {
40 $line =~ s/^$f[0]\s+//; # remove it
46 # change ^ into : for transmission
50 if (@bad = BadWords::check($line)) {
51 return (1, $self->msg('e17', @bad));
54 return (1, $self->msg('dup')) if AnnTalk::dup($from, $to, $line);
55 Log('ann', $to, $from, $line);
56 DXProt::broadcast_list("To $to de $from <$t>: $line", 'ann', undef, @locals);
58 my $pc = DXProt::pc12($from, $line, $tonode, $sysopflag, 0);
59 DXProt::broadcast_ak1a($pc);