showlines and showwords
Brought to you by:
mbrix
At display of the table "_activenicks" the width of columns "showlines" and "showwords" to pay off from the maximal value depending on parameter "sortbywords", and should pay off for everyone separately.
HTMLGenerator.pm
line: 542
my @active; my $activetopwords; my $activetoplines; my $nicks; if ($self->{cfg}->{sortbywords}) { @active = sort { $self->{stats}->{words}{$b} <=> $self->{stats}->{words}{$a} } keys %{ $self->{stats}->{words} }; $nicks = scalar keys %{ $self->{stats}->{words} }; my @activetemp; @activetemp = sort { $self->{stats}->{lines}{$b} <=> $self->{stats}->{lines}{$a} } keys %{ $self->{stats}->{lines} }; $activetopwords = $active[0]; $activetoplines = $activetemp[0]; } else { @active = sort { $self->{stats}->{lines}{$b} <=> $self->{stats}->{lines}{$a} } keys %{ $self->{stats}->{lines} }; $nicks = scalar keys %{ $self->{stats}->{lines} }; my @activetemp; @activetemp = sort { $self->{stats}->{words}{$b} <=> $self->{stats}->{words}{$a} } keys %{ $self->{stats}->{words} }; $activetopwords = $activetemp[0]; $activetoplines = $active[0]; }
line: 650
if ($self->{cfg}->{showlines}) { if ($self->{cfg}->{showlinetime}) { $output .= "<td $style nowrap=\"nowrap\">" . $self->_user_linetimes($nick,$activetoplines) . "</td>"; } else { $output .= "<td $style>$line</td>"; } } $output .= "<td $style>" . $self->_user_times($nick) . "</td>" if ($self->{cfg}->{showtime}); if ($self->{cfg}->{showwords}) { if ($self->{cfg}->{showwordtime}) { $output .= "<td $style nowrap=\"nowrap\">" . $self->_user_wordtimes($nick,$activetopwords) . "</td>"; } else { $output .= "<td $style>$w</td>"; } }
PS: Excuse for my pronunciation :)