From 7ad9384aae58fc8506e62441065d3bfbaa88804f Mon Sep 17 00:00:00 2001 From: octo Date: Wed, 13 Apr 2005 16:45:33 +0000 Subject: [PATCH] Fixed major bug in Onis::Data::Core.. --- lib/Onis/Plugins/Core.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Onis/Plugins/Core.pm b/lib/Onis/Plugins/Core.pm index e644cd4..ec6dc79 100644 --- a/lib/Onis/Plugins/Core.pm +++ b/lib/Onis/Plugins/Core.pm @@ -468,7 +468,7 @@ sub calculate $NickData->{$main}{'lines'}[$i] += $counter[$i]; $sum += $counter[$i]; } - $NickData->{$main}{'lines_total'} = $sum; + $NickData->{$main}{'lines_total'} += $sum; } @counter = $NickWordsCounter->get ($nick); @@ -480,7 +480,7 @@ sub calculate $NickData->{$main}{'words'}[$i] += $counter[$i]; $sum += $counter[$i]; } - $NickData->{$main}{'words_total'} = $sum; + $NickData->{$main}{'words_total'} += $sum; } @counter = $NickCharsCounter->get ($nick); @@ -492,7 +492,7 @@ sub calculate $NickData->{$main}{'chars'}[$i] += $counter[$i]; $sum += $counter[$i]; } - $NickData->{$main}{'chars_total'} = $sum; + $NickData->{$main}{'chars_total'} += $sum; } if (!defined ($QuoteData->{$main})) @@ -978,7 +978,7 @@ sub bar $retval .= qq#$sum); } return ($retval); -- 2.11.0