- $dxchan->talk($self->call, $to, $via, $line) if $dxchan;
+ my @bad;
+ if (@bad = BadWords::check($line)) {
+ $self->badcount(($self->badcount||0) + @bad);
+ LogDbg('DXCommand', "$self->{call} swore: $line (with words:" . join(',', @bad) . ")");
+ } else {
+ $dxchan->talk($self->call, $to, $via, $line) if $dxchan;
+ }