The new BadWord, all regex, system
[spider.git] / perl / Editable.pm
index 0655fcf6a1629050cf9b7fbbb64d75dff7261b1b..d2f15eeeb144543576316a4c904f929d90b1d3e0 100644 (file)
@@ -39,7 +39,7 @@ sub addline
        my $dxchan = shift;
        my $line = shift;
        
-       if (my @ans = BadWord::check($line)) {
+       if (my @ans = BadWords::check($line)) {
                return ($dxchan->msg('e17', @ans));
        }
        push @{$self->{lines}}, $line;
@@ -53,7 +53,7 @@ sub modline
        my $no = shift;
        my $line = shift;
 
-       if (my @ans = BadWord::check($line)) {
+       if (my @ans = BadWords::check($line)) {
                return ($dxchan->msg('e17', @ans));
        }
     ${$self->{lines}}[$no] = $line;