staging init
[spider.git] / perl / DXCommandmode.pm
index 90812225dfe772c4bd8b2671f6ff3600bc70a521..006d8d9dfb9c70bd43c06e635748c3a5a2a745ac 100644 (file)
@@ -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