X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=01395c9052a52c429b2a27e547b608a575294689;hb=606b9690c7bb9e293cb4a03507f0280eea05d9ce;hp=d17f6f9178e2accdba36803005ac43901484aa84;hpb=e61ab5eeea22241ea8d8f1f6d072f5249901d788;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index d17f6f91..01395c90 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -406,7 +406,7 @@ sub normal } # check for excessive swearing - if ($self->{badcount} && $self->{badcount} >= $maxbadcount) { + if ($maxbadcount && $self->{badcount} && $self->{badcount} >= $maxbadcount) { LogDbg('DXCommand', "$self->{call} logged out for excessive swearing"); $self->disconnect; return;