فهرست منبع

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