Przeglądaj źródła

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

sbingner 24 lat temu
rodzic
commit
92acc45b0e
1 zmienionych plików z 5 dodań i 1 usunięć
  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});
         }