فهرست منبع

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/'..?$/);