Răsfoiți Sursa

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

Morten Brix Pedersen 25 ani în urmă
părinte
comite
54cf6c6368
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  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/'..?$/);