X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=006d8d9dfb9c70bd43c06e635748c3a5a2a745ac;hb=400227d4bd709387099bf224b1c00a6f988c8196;hp=90812225dfe772c4bd8b2671f6ff3600bc70a521;hpb=a2f8a91ca76dce4ec7649470d5fa1e2881682d42;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 90812225..006d8d9d 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -401,12 +401,12 @@ sub normal } $self->send_ans(@ans); } else { -# if (@bad = BadWords::check($cmdline)) { -# $self->badcount(($self->badcount||0) + @bad); -# LogDbg('DXCommand', "$self->{call} swore: '$cmdline' with badwords: '" . join(',', @bad) . "'"); -# } else { + if (@bad = BadWords::check($cmdline)) { + $self->badcount(($self->badcount||0) + @bad); + LogDbg('DXCommand', "$self->{call} swore: '$cmdline' with badwords: '" . join(',', @bad) . "'"); + } else { $self->send_ans(run_cmd($self, $cmdline)); -# } + } } # check for excessive swearing