Sfoglia il codice sorgente

* Fix a problem with irssi logs, where a topic was understood as a saying.
(thanks, jikuja)

Morten Brix Pedersen 23 anni fa
parent
commit
2be68a3f32
2 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 2 0
      docs/Changelog
  2. 1 1
      modules/Pisg/Parser/Format/irssi.pm

+ 2 - 0
docs/Changelog

@@ -10,6 +10,8 @@ pisg (x.xx)
      new ones.
    * Distribute raw docbook (SGML) documentation (docs/pisg-doc.sgml)
    * Add half-op (+h) support to the xchat format (thanks, Jaff Har Har)
+   * Fix a problem with irssi logs, where a topic was understood as a saying.
+   (thanks, jikuja)
 
 pisg (0.49) - Sun Sep, 14th 2003
    * Make the HTML output XHTML compliant again (thanks, Stian Jordet)

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

@@ -10,7 +10,7 @@ sub new
     my ($type, %args) = @_;
     my $self = {
         cfg => $args{cfg},
-        normalline => '^(\d+):\d+[^<]+<[@%+ ]?([^>]+)> (.*)',
+        normalline => '^(\d+):\d+[^<^!]+<[@%+ ]?([^>]+)> (.*)',
         actionline => '^(\d+):\d+[^ ]+ +\* (\S+) (.*)',
         thirdline  => '^(\d+):(\d+)[^-]+-\!- (\S+) (\S+) (\S+) (\S+) (\S+)(.*)',
     };