4
0
Эх сурвалжийг харах

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

sbingner 24 жил өмнө
parent
commit
92acc45b0e

+ 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});
         }