ソースを参照

incasesensitive foul words

Morten Brix Pedersen 25 年 前
親
コミット
8d39425a31
1 ファイル変更、1 行追加、1 行削除
  1. 1 1
      pisg.pl

+ 1 - 1
pisg.pl

@@ -492,7 +492,7 @@ sub parse_file
                         if ($saying =~ /[A-Z]+/ and $saying !~ /[a-z0-9:]/);
                         if ($saying =~ /[A-Z]+/ and $saying !~ /[a-z0-9:]/);
 
 
                     $foul{$nick}++
                     $foul{$nick}++
-                        if ($saying =~ /$foulwords/);
+                        if ($saying =~ /$foulwords/i);
 
 
                     # Who smiles the most?
                     # Who smiles the most?
                     # A regex matching al lot of smilies
                     # A regex matching al lot of smilies