X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fannounce.pl;h=3b07d84ddec974639e6943c16b5ae0eb92c2640f;hb=bbcb636f1bc71eb1426685ef64382ea42d27ecfb;hp=6eb1810ee2418bc342cb613235de09090e23214d;hpb=8e0eef80216fbb2bca3606daf5797e39b2889d7a;p=spider.git diff --git a/cmd/announce.pl b/cmd/announce.pl index 6eb1810e..3b07d84d 100644 --- a/cmd/announce.pl +++ b/cmd/announce.pl @@ -26,6 +26,7 @@ my $to; my $from = $self->call; my $t = ztime(time); my $tonode; +my $toflag = '*'; my $sysopflag; if ($sort eq "FULL") { @@ -48,15 +49,19 @@ $line =~ s/\^/:/og; my @bad; if (@bad = BadWords::check($line)) { - return (1, $self->msg('e17', @bad)); + $self->badcount(($self->badcount||0) + @bad); + Log('DXCommand', "$self->{call} swore: $line"); + Log('ann', $to, $from, "[to $from only] $line"); + $self->send("To $to de $from <$t>: $line"); + return (1, ()); } -return (1, $self->msg('dup')) if AnnTalk::dup($from, $to, $line); +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); +DXChannel::broadcast_list("To $to de $from <$t>: $line", 'ann', undef, @locals); if ($to ne "LOCAL") { my $pc = DXProt::pc12($from, $line, $tonode, $sysopflag, 0); - DXProt::broadcast_ak1a($pc); + DXChannel::broadcast_nodes($pc); } return (1, ());