$text");
+ }
+ }
+
+ if (@hump >= 2) {
+ my %hash = (
+ nick => $hump[1],
+ humped => $self->{stats}->{humping}{$hump[1]},
+ line => $self->_format_line($self->{stats}->{humpinglines}{$hump[0]})
+ );
+
+ my $text = $self->_template_text('hump2', %hash);
+ _html(" $text");
+ }
+ _html(" |
");
+}
+
sub _capspeople
{
# The ones who speak ALL CAPS.
Index: pisg-0.70/modules/Pisg/Parser/Logfile.pm
===================================================================
--- pisg-0.70.orig/modules/Pisg/Parser/Logfile.pm
+++ pisg-0.70/modules/Pisg/Parser/Logfile.pm
@ -479,6 +480,11 @@ sub _parse_file
$stats->{lastvisited}{$nick} = $stats->{days};
$stats->{line_times}{$nick}[int($hour/6)]++;
+ if (index($saying, 'hump') > -1) {
+ $stats->{humping}{$nick}++;
+ push @{ $lines->{humpinglines}{$nick} }, $line;
+ }
+
if ($self->{violentwords_regexp} and $saying =~ /$self->{violentwords_regexp}/) {
my $victim;
unless ($victim = is_nick($2)) {