2 # do an wx message, this is identical to the announce except that it does WX
9 # at the moment these keywords are fixed, but I dare say a file containing valid ones
12 # Copyright (c) 1998 Dirk Koopman G1TLH
17 my ($self, $line) = @_;
18 my @f = split /\s+/, $line;
20 my @locals = DXCommandmode->get_all();
22 my $from = $self->call;
26 return (1, $self->msg('e5')) if $self->remotecmd || $self->inscript;
27 return (1, $self->msg('e28')) unless $self->registered;
29 if ($sort eq "FULL") {
30 $line =~ s/^$f[0]\s+//; # remove it
32 } elsif ($sort eq "SYSOP") {
33 $line =~ s/^$f[0]\s+//; # remove it
34 @locals = map { $_->priv >= 5 ? $_ : () } @locals;
41 DXChannel::broadcast_list("WX de $from <$t>: $line", 'wx', undef, @locals);
43 $line =~ s/\^//og; # remove ^ characters!
44 my $pc = DXProt::pc12($from, $line, $tonode, $sysopflag, 1);
45 DXChannel::broadcast_nodes($pc, $main::me);