X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fannounce.pl;h=ca77f17a78d87527b476e722c4a8e1a06d4d5c67;hb=579810d363939640538f88a9caa86e01fe9c7709;hp=df7b91d0f54b7913ff423ae64a5981c6e9cf661d;hpb=b3760d7cb02f90c3b8599ca6b7237e75e0a3f041;p=spider.git diff --git a/cmd/announce.pl b/cmd/announce.pl index df7b91d0..ca77f17a 100644 --- a/cmd/announce.pl +++ b/cmd/announce.pl @@ -19,6 +19,7 @@ my ($self, $line) = @_; my @f = split /\s+/, $line; return (1, $self->msg('e5')) if $self->remotecmd; return (1, $self->msg('e9')) if !@f; +return (1, $self->msg('e28')) unless $self->registered; my $sort = uc $f[0]; my @locals = DXCommandmode->get_all(); @@ -49,15 +50,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, $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, ());