if ($sort eq "FULL") {
$line =~ s/^$f[0]\s+//; # remove it
- $to = "All";
+ $to = "ALL";
} elsif ($sort eq "SYSOP") {
$line =~ s/^$f[0]\s+//; # remove it
@locals = map { $_->priv >= 5 ? $_ : () } @locals;
- $to = "Sysop";
+ $to = "SYSOP";
$sysopflag = '*';
} elsif ($sort eq "LOCAL") {
$line =~ s/^$f[0]\s+//; # remove it
- $to = "Local";
+ $to = "LOCAL";
} else {
- $to = "Local";
+ $to = "LOCAL";
}
# change ^ into : for transmission
return (1, $self->msg('dup')) if AnnTalk::dup($from, $toflag, $line);
Log('ann', $to, $from, $line);
DXProt::broadcast_list("To $to de $from <$t>: $line", 'ann', undef, @locals);
-if ($to ne "Local") {
+if ($to ne "LOCAL") {
my $pc = DXProt::pc12($from, $line, $tonode, $sysopflag, 0);
DXProt::broadcast_ak1a($pc);
}
$target = "WX";
$to = '';
}
- $target = "All" if !$target;
+ $target = "ALL" if !$target;
Log('ann', $target, $_[0], $text);