Morten Brix Pedersen 23 лет назад
Родитель
Сommit
eef2efb807
4 измененных файлов с 41 добавлено и 2 удалено
  1. 1 0
      docs/Changelog
  2. 38 1
      docs/pisg-doc.sgml
  3. 1 0
      modules/Pisg.pm
  4. 1 1
      modules/Pisg/HTMLGenerator.pm

+ 1 - 0
docs/Changelog

@@ -21,6 +21,7 @@ pisg (x.xx)
      outputted that no lines were found in the logfile. This was confusing
      outputted that no lines were found in the logfile. This was confusing
      because files in the wrong format usually contained lines. Now be more
      because files in the wrong format usually contained lines. Now be more
      verbose.
      verbose.
+   * ShowOps option added. Has similar effect as ShowVoices and ShowHalfops.
 
 
 pisg (0.46) - Tue Feb, 11th 2003
 pisg (0.46) - Tue Feb, 11th 2003
    * Fix serious bug which caused garbled output i "Latest topics" and other
    * Fix serious bug which caused garbled output i "Latest topics" and other

+ 38 - 1
docs/pisg-doc.sgml

@@ -1581,6 +1581,43 @@
     </refsect1>
     </refsect1>
     </refentry>
     </refentry>
 
 
+    <!-- *** SHOWOPS *** -->
+    <refentry id="ShowOps">
+
+    <refmeta> <refentrytitle>ShowOps</refentrytitle> </refmeta>
+
+    <refnamediv>
+    <refname>ShowOps</refname>
+    <refpurpose>enable or disable op statistics</refpurpose>
+    </refnamediv>
+
+    <refsynopsisdiv><programlisting>
+      <![CDATA[
+        <channel="#channel">
+         Logfile = "channel.log"
+         Format = "xchat"
+         ShowOps = "0"
+        </channel>
+
+        <set ShowOps="0">
+      ]]>
+    </programlisting></refsynopsisdiv>
+
+    <refsect1>
+    <title>Description</title>
+    <para>
+    By default, pisg has op statistics in the "Most interesting numbers"
+    section. Here you can disable the feature, it's useful if you don't feel
+    that the information is of any value, or your logformat doesn't support
+    ops/deops.
+    </para>
+    </refsect1>
+    <refsect1>
+    <title>Default</title>
+    <para> 1 (enabled) </para>
+    </refsect1>
+    </refentry>
+
     <!-- *** SHOWVOICES *** -->
     <!-- *** SHOWVOICES *** -->
     <refentry id="ShowVoices">
     <refentry id="ShowVoices">
 
 
@@ -1617,7 +1654,7 @@
     </refsect1>
     </refsect1>
     </refentry>
     </refentry>
 
 
-    <!-- *** SHOWVOICES *** -->
+    <!-- *** SHOWHALFOPS *** -->
     <refentry id="ShowHalfops">
     <refentry id="ShowHalfops">
 
 
     <refmeta> <refentrytitle>ShowHalfops</refentrytitle> </refmeta>
     <refmeta> <refentrytitle>ShowHalfops</refentrytitle> </refmeta>

+ 1 - 0
modules/Pisg.pm

@@ -152,6 +152,7 @@ sub get_default_config_settings
         showmuw => 1,
         showmuw => 1,
         showmrn => 1,
         showmrn => 1,
         showmru => 1,
         showmru => 1,
+        showops => 1,
         showvoices => 0,
         showvoices => 0,
         showhalfops => 0,
         showhalfops => 0,
         showmostnicks => 0,
         showmostnicks => 0,

+ 1 - 1
modules/Pisg/HTMLGenerator.pm

@@ -111,7 +111,7 @@ sub create_html
         _html("<table width=\"$self->{cfg}->{tablewidth}\">\n"); # Needed for sections
         _html("<table width=\"$self->{cfg}->{tablewidth}\">\n"); # Needed for sections
         $self->_gotkicks();
         $self->_gotkicks();
         $self->_mostkicks();
         $self->_mostkicks();
-        $self->_mostop();
+        $self->_mostop() if $self->{cfg}->{showops};
         $self->_mosthalfop() if $self->{cfg}->{showhalfops};
         $self->_mosthalfop() if $self->{cfg}->{showhalfops};
         $self->_mostvoice() if $self->{cfg}->{showvoices};
         $self->_mostvoice() if $self->{cfg}->{showvoices};
         $self->_mostactions();
         $self->_mostactions();