Christoph Berg 21 лет назад
Родитель
Сommit
b53b82d51b
4 измененных файлов с 41 добавлено и 1 удалено
  1. 1 0
      docs/Changelog
  2. 35 0
      docs/pisg-doc.xml
  3. 1 0
      modules/Pisg.pm
  4. 4 1
      modules/Pisg/HTMLGenerator.pm

+ 1 - 0
docs/Changelog

@@ -5,6 +5,7 @@ pisg (0.62) - ??
    * Make FoulWords, ViolentWords, and IgnoreWords configurable per channel
      (required quite some black regexp magic; SF tracker #1066103 by jjp3).
    * wordlist_regexp uses quotemeta.
+   * New ShowActiveNicks option (defaulting to 1).
 
 pisg (0.61) - Sat Oct, 30th 2004
    Changes by Christoph Berg:

+ 35 - 0
docs/pisg-doc.xml

@@ -1026,6 +1026,41 @@
     </refsect1>
     </refentry>
 
+    <!-- *** SHOWACTIVENICKS *** -->
+    <refentry id="ShowActiveNicks">
+
+    <refmeta> <refentrytitle>ShowActiveNicks</refentrytitle> </refmeta>
+
+    <refnamediv>
+    <refname>ShowActiveNicks</refname>
+    <refpurpose>enable/disable "Most Active Nicks"</refpurpose>
+    </refnamediv>
+
+    <refsynopsisdiv><programlisting>
+      <![CDATA[
+        <channel="#channel">
+         Logfile = "channel.log"
+         Format = "xchat"
+         ShowActiveNicks = "0"
+        </channel>
+
+        <set ShowActiveNicks="1">
+      ]]>
+    </programlisting></refsynopsisdiv>
+
+    <refsect1>
+    <title>Description</title>
+    <para>
+    With this option you can disable the "Most Active Nicks" section on the
+    stats page.
+    </para>
+    </refsect1>
+    <refsect1>
+    <title>Default</title>
+    <para> 1 (enabled) </para>
+    </refsect1>
+    </refentry>
+
     <!-- *** SHOWBIGNUMBERS *** -->
     <refentry id="ShowBigNumbers">
 

+ 1 - 0
modules/Pisg.pm

@@ -132,6 +132,7 @@ sub get_default_config_settings
         # Stats settings
 
         showactivetimes => 1,
+        showactivenicks => 1,
         showbignumbers => 1,
         showtopics => 1,
         showlinetime => 0,

+ 4 - 1
modules/Pisg/HTMLGenerator.pm

@@ -98,7 +98,10 @@ sub create_output
     if ($self->{cfg}->{showactivetimes}) {
         $self->_activetimes();
     }
-    $self->_activenicks();
+
+    if ($self->{cfg}->{showactivenicks}) {
+        $self->_activenicks();
+    }
 
     if ($self->{cfg}->{showmostactivebyhour}) {
         $self->_mostactivebyhour();