浏览代码

Fix wrong counting of most referenced nicks.

Morten Brix Pedersen 22 年之前
父节点
当前提交
ec850fa1fb
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      docs/Changelog
  2. 1 1
      modules/Pisg/HTMLGenerator.pm

+ 3 - 0
docs/Changelog

@@ -1,3 +1,6 @@
+pisg (x.xx)
+   * Fix wrong counting of most referenced nicks.
+
 pisg (0.52) - Fri Feb, 13rd 2004
    * Fixed a bug in the energymech format, it did not recognize join lines.
    * Fixed some bugs in the mIRC6 format.

+ 1 - 1
modules/Pisg/HTMLGenerator.pm

@@ -1748,7 +1748,7 @@ sub _mostreferencednicks
         _html("<td class=\"tdtop\"><b>" . $self->_template_text('lastused') . "</b></td></tr>");
 
         for(my $i = 0; $i < $self->{cfg}->{nickhistory}; $i++) {
-            last unless $i < $#popular;
+            last unless $i <= $#popular;
             my $a = $i + 1;
             my $popular   = $popular[$i];
             my $wordcount = $self->{stats}->{wordcounts}{$popular[$i]};