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;
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
49 Log('ann', $to, $from, $line);
50 DXProt::broadcast_list("To $to de $from <$t>: $line", 'ann', undef, @locals);
52 $line =~ s/\^//og; # remove ^ characters!
53 my $pc = DXProt::pc12($from, $line, $tonode, $sysopflag, 0);
54 DXProt::broadcast_ak1a($pc);