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;
21 my $from = $self->call;
25 return (1, $self->msg('e5')) if $self->remotecmd || $self->inscript;
26 return (1, $self->msg('e28')) unless $self->registered;
28 if ($sort eq "FULL") {
29 $line =~ s/^$f[0]\s+//; # remove it
35 # if this is a 'bad spotter' user then ignore it
39 if ($DXProt::badspotter->in($nossid)) {
40 LogDbg('DXCommand', "bad spotter ($self->{call}) made announcement: $line");
46 if (@bad = BadWords::check($line)) {
47 $self->badcount(($self->badcount||0) + @bad);
48 LogDbg('DXCommand', "$self->{call} swore: $line (with words:" . join(',', @bad) . ")");
53 Log('ann', $to, $from, "[to $from only] $line");
54 $self->send("WX de $from: $line");
58 Log('ann', $via ? $via : '*', $from, $line);
59 $main::me->normal(DXProt::pc93($to, $from, $via, $line));
61 #DXChannel::broadcast_list("WX de $from <$t>: $line", 'wx', undef, @locals);
62 #if ($to ne "LOCAL") {
63 # $line =~ s/\^//og; # remove ^ characters!
64 # my $pc = DXProt::pc12($from, $line, $tonode, $sysopflag, 1);
65 # DXChannel::broadcast_nodes($pc, $main::me);