Explorar o código

Add check on whether the URL is ignored

Morten Brix Pedersen %!s(int64=25) %!d(string=hai) anos
pai
achega
d280142902
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      modules/Pisg/Parser/Logfile.pm

+ 4 - 2
modules/Pisg/Parser/Logfile.pm

@@ -239,8 +239,10 @@ sub _parse_file
                     }
 
                     if (my $url = match_url($saying)) {
-                        $stats->{urlcounts}{$url}++;
-                        $stats->{urlnicks}{$url} = $nick;
+                        unless(url_is_ignored($url)) {
+                            $stats->{urlcounts}{$url}++;
+                            $stats->{urlnicks}{$url} = $nick;
+                        }
                     }
 
                     $self->_parse_words($stats, $saying, $nick);