소스 검색

Use an actionline for quote if no normal lines are available in most active nicks

sbingner 24 년 전
부모
커밋
92acc45b0e
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      modules/Pisg/HTMLGenerator.pm

+ 5 - 1
modules/Pisg/HTMLGenerator.pm

@@ -414,7 +414,11 @@ sub _activenicks
 
         my $randomline;
         if (not defined $self->{stats}->{sayings}{$nick}) {
-            $randomline = "";
+            if ($self->{stats}->{actions}{$nick}) {
+                $randomline = htmlentities($self->{stats}->{actionlines}{$nick});
+            } else {
+                $randomline = "";
+            }
         } else {
             $randomline = htmlentities($self->{stats}->{sayings}{$nick});
         }