소스 검색

Fix word counting bug.. it was matching "everything"(almost..)

Morten Brix Pedersen 25 년 전
부모
커밋
54cf6c6368
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      pisg.pl

+ 3 - 1
pisg.pl

@@ -883,7 +883,9 @@ sub parse_words
         $words{$nick}++;
         # remove uninteresting words
         next unless (length($word) >= $conf->{wordlength});
-        next if ($word =~ /$conf->{ignorewords}/);
+        if ($conf->{ignorewords}) {
+            next if ($word =~ /$conf->{ignorewords}/);
+        }
 
         # ignore contractions
         next if ($word =~ m/'..?$/);