X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?p=spider.git;a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=90812225dfe772c4bd8b2671f6ff3600bc70a521;hp=f6d890b17c5919eb74254854fa7d77aea04b1c9f;hb=14172e7e59f38445d34b1a55b45e793f6ed53274;hpb=61a666ccf108505f0cec2e5c682fde019fc3a051 diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index f6d890b1..90812225 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -348,7 +348,7 @@ sub normal my $sendit = $cmdline =~ s|^/+||; if (@bad = BadWords::check($cmdline)) { $self->badcount(($self->badcount||0) + @bad); - LogDbg('DXCommand', "$self->{call} swore: '$cmdline' with words: '" . join(',', @bad) . "'"); + LogDbg('DXCommand', "$self->{call} swore: '$cmdline' with badwords: '" . join(',', @bad) . "'"); } else { my @in = $self->run_cmd($cmdline); $self->send_ans(@in); @@ -369,7 +369,7 @@ sub normal # send what has been said to whoever is in this person's talk list if (@bad = BadWords::check($cmdline)) { $self->badcount(($self->badcount||0) + @bad); - LogDbg('DXCommand', "$self->{call} swore: '$cmdline' with words: '" . join(',', @bad) . "'"); + LogDbg('DXCommand', "$self->{call} swore: '$cmdline' with badwords: '" . join(',', @bad) . "'"); } else { for (@{$self->{talklist}}) { if ($self->{state} eq 'talk') { @@ -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 words: '" . 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