4
0
doomshammer 25 жил өмнө
parent
commit
02a60dc675
1 өөрчлөгдсөн 6 нэмэгдсэн , 4 устгасан
  1. 6 4
      pisg.pl

+ 6 - 4
pisg.pl

@@ -110,7 +110,7 @@ $thirdline, @ignore, $processtime, @topics, %monologue, %kicked, %gotkick,
 %loud, $totallength, %gaveop, %tookop, %joins, %actions, %sayings, %wordcount,
 %loud, $totallength, %gaveop, %tookop, %joins, %actions, %sayings, %wordcount,
 %lastused, %gotban, %setban, %foul, $days, $oldtime, $lastline, $actions,
 %lastused, %gotban, %setban, %foul, $days, $oldtime, $lastline, $actions,
 $normals, %T, $repeated, $lastnormal, %shout, %slap, %slapped, %words,
 $normals, %T, $repeated, $lastnormal, %shout, %slap, %slapped, %words,
-%line_time, @urls, %urlnick);
+%line_time, @urls, %urlnick, %kickline);
 
 
 
 
 sub main
 sub main
@@ -589,6 +589,7 @@ sub parse_file
                     unless (grep /^\Q$kicker\E$/i, @ignore) {
                     unless (grep /^\Q$kicker\E$/i, @ignore) {
                         $gotkick{$nick}++;
                         $gotkick{$nick}++;
                         $kicked{$kicker}++;
                         $kicked{$kicker}++;
+						$kickline{$nick} = $line;
                     }
                     }
                 } elsif (defined($newtopic)) {
                 } elsif (defined($newtopic)) {
                     unless ($newtopic eq '') {
                     unless ($newtopic eq '') {
@@ -1676,16 +1677,17 @@ sub gotkicks
     # The persons who got kicked the most
     # The persons who got kicked the most
 
 
     my @gotkick = sort { $gotkick{$b} <=> $gotkick{$a} } keys %gotkick;
     my @gotkick = sort { $gotkick{$b} <=> $gotkick{$a} } keys %gotkick;
-
     if (@gotkick) {
     if (@gotkick) {
         my %hash = (
         my %hash = (
             nick => $gotkick[0],
             nick => $gotkick[0],
-            kicks => $gotkick{$gotkick[0]}
+            kicks => $gotkick{$gotkick[0]},
+			line => $kickline{$gotkick[0]}
         );
         );
 
 
         my $text = template_text('gotkick1', %hash);
         my $text = template_text('gotkick1', %hash);
+		my $exttext = template_text('kicktext', %hash);
 
 
-        html("<tr><td bgcolor=\"$conf->{hicell}\">$text");
+        html("<tr><td bgcolor=\"$conf->{hicell}\">$text<br><span class=\"small\">$exttext</span><br>");
         if (@gotkick >= 2) {
         if (@gotkick >= 2) {
             my %hash = (
             my %hash = (
                 nick => $gotkick[1],
                 nick => $gotkick[1],