add if you swear 3 or more times you are unceremoniously logged out
[spider.git] / cmd / dx.pl
index 85dc4cf91f47aba2df092596b78eca31b2d218f5..c7161b62b7887c99d232362b1249e61ad6c0060c 100644 (file)
--- a/cmd/dx.pl
+++ b/cmd/dx.pl
@@ -94,7 +94,8 @@ if ($spotted le ' ') {
 return (1, @out) unless $valid;
 
 my @bad;
-if (@bad = BadWords::check($line)) {
+if (@bad = BadWords::check($line)) {   
+       $self->badcount(($self->badcount||0) + @bad);
        return (1, $self->msg('e17', @bad));
 }