Explorar o código

* Make the ircII format use Maintainer instead of ircIInick.
* Documentation:
+ Add note that Maintainer is used by some log formats.

Christoph Berg %!s(int64=21) %!d(string=hai) anos
pai
achega
fc776daa8d
Modificáronse 5 ficheiros con 12 adicións e 6 borrados
  1. 3 0
      docs/Changelog
  2. 1 1
      docs/FORMATS
  3. 7 3
      docs/pisg-doc.xml
  4. 0 1
      modules/Pisg.pm
  5. 1 1
      modules/Pisg/Parser/Format/ircII.pm

+ 3 - 0
docs/Changelog

@@ -19,6 +19,9 @@ pisg (0.64) - ??
      nick while parsing. Saves memory and is probably saner anyway (thanks!).
      nick while parsing. Saves memory and is probably saner anyway (thanks!).
    * Add version number to documentation title (and let the release Makefile
    * Add version number to documentation title (and let the release Makefile
      update it).
      update it).
+   * Make the ircII format use Maintainer instead of ircIINick.
+   * Documentation:
+     + Add note that Maintainer is used by some log formats.
 
 
 pisg (0.63) - Wed Jan, 12th 2005
 pisg (0.63) - Wed Jan, 12th 2005
    Morten:
    Morten:

+ 1 - 1
docs/FORMATS

@@ -384,7 +384,7 @@ time"
     5 minutes), with the main effect being the topic change times will only
     5 minutes), with the main effect being the topic change times will only
     accurate to how often the time is marked.
     accurate to how often the time is marked.
 
 
-  - The config option "ircIINick" needs to be set to the maintainer's nick
+  - The config option "Maintainer" needs to be set to the maintainer's nick
 
 
   Example:
   Example:
     22:40
     22:40

+ 7 - 3
docs/pisg-doc.xml

@@ -105,10 +105,10 @@
    ]]>
    ]]>
    </programlisting>
    </programlisting>
 
 
-   The above will define a channel called <command>#channel</command>, the
+   The above will define a <xref linkend="Channel" /> called <command>#channel</command>, the
    logfile pisg will look for is called <command>channel.log</command> and
    logfile pisg will look for is called <command>channel.log</command> and
-   the format of the logfile will be <command>mIRC</command>. The
-   maintainer (which will be stated on the output page) is
+   the <xref linkend="Format" /> of the logfile will be <command>mIRC</command>. The
+   <xref linkend="Maintainer" /> (which will be stated on the output page) is
    <command>John</command>.
    <command>John</command>.
    </para>
    </para>
 
 
@@ -435,6 +435,7 @@
     <command>Format</command> is used to define the format of the logfile,
     <command>Format</command> is used to define the format of the logfile,
     pisg supports a various number of different logfiles, see the FORMATS
     pisg supports a various number of different logfiles, see the FORMATS
     file included with the pisg distribution.
     file included with the pisg distribution.
+    See also <xref linkend="Maintainer" />.
     </para>
     </para>
     </refsect1>
     </refsect1>
     <refsect1>
     <refsect1>
@@ -706,6 +707,9 @@
     maintainer of the statistics page, this can be either the person
     maintainer of the statistics page, this can be either the person
     generating the stats or the bot/client doing the logging.
     generating the stats or the bot/client doing the logging.
     The maintainer is displayed in the outputted stats page.
     The maintainer is displayed in the outputted stats page.
+    This setting is also used by some log parsers where "You" is used
+    instead of the nick in the log (e.g. "You have been kicked").
+    See also <xref linkend="Format" />.
     </para>
     </para>
     </refsect1>
     </refsect1>
     <refsect1>
     <refsect1>

+ 0 - 1
modules/Pisg.pm

@@ -188,7 +188,6 @@ sub get_default_config_settings
         charset => 'iso-8859-1',
         charset => 'iso-8859-1',
         logcharset => '',
         logcharset => '',
         logcharsetfallback => '',
         logcharsetfallback => '',
-        irciinick => 'maintainer',
 
 
         # sorting
         # sorting
         sortbywords => 0,
         sortbywords => 0,

+ 1 - 1
modules/Pisg/Parser/Format/ircII.pm

@@ -46,7 +46,7 @@ sub normalline
             $hash{nick}   = $1;
             $hash{nick}   = $1;
             $hash{saying} = $2;
             $hash{saying} = $2;
         } elsif ($1 =~ /^> (.*)/) {
         } elsif ($1 =~ /^> (.*)/) {
-            $hash{nick} = $self->{cfg}->{irciinick};
+            $hash{nick} = $self->{cfg}->{maintainer};
             $hash{saying} = $1;
             $hash{saying} = $1;
         }
         }