Fixed user config: User `ignore' is ignored again.
[onis.git] / lib / Onis / Data / Core.pm
index 76f8c8c..7bc3ed9 100644 (file)
@@ -399,6 +399,8 @@ sub calculate_nicks
                        my $ident = $_;
                        my $name = chatter_to_name ("$this_nick!$ident");
                        my $num = $nicks->{$this_nick}{$ident};
+
+                       next if ($name eq 'ignore');
                        
                        $this_total += $num;
 
@@ -757,8 +759,9 @@ Print the output. Should be called only once..
 
 sub print_output
 {
-       # FIXME FIXME FIXME
-       if (!get_total_lines ())
+       my ($total, $this) = get_total_lines ();
+
+       if (!$total)
        {
                print STDERR <<'MESSAGE';