Torbjorn Svensson 20 лет назад
Родитель
Сommit
6325f7ba70
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 0
      docs/Changelog
  2. 2 2
      modules/Pisg/Parser/Format/psybnc.pm

+ 1 - 0
docs/Changelog

@@ -37,6 +37,7 @@ pisg (0.69) - ??
    * Parsers:
      + Add support for both the 1.0.5(stable) and the 1.1.0(devel) log format 
        of dircproxy.
+     + Fix parser for psyBNC (SF #1490957).
    Language Updates:
      + Portuguese: completed by DarkForce72.
      + Portuguese/Brazil: completed by Guilherme Barile.

+ 2 - 2
modules/Pisg/Parser/Format/psybnc.pm

@@ -12,7 +12,7 @@ sub new
         cfg => $args{cfg},
         normalline => '^\d+-\d+-\d+-(\d+)-\d+-\d+:[^:]+::([^!]+)[^:]+ PRIVMSG [^:]+:([^\001]+)',
         actionline => '^\d+-\d+-\d+-(\d+)-\d+-\d+:[^:]+::([^!]+)[^:]+:\001ACTION ([^\001]*)',
-        thirdline  => '^\d+-\d+-\d+-(\d+)-(\d+)-\d+:[^:]+::([^! .]+)[^ ]* (\w+) [#\w]+ :?((\S*)\s*(.*))',
+        thirdline  => '^\d+-\d+-\d+-(\d+)-(\d+)-\d+:[^:]+::([^! .]+)[^ ]* (\w+) \S+ :?((\S*)\s*(.*))',
     };
 
     bless($self, $type);
@@ -72,7 +72,7 @@ sub thirdline
             $hash{newtopic} = $5;
 
         } elsif ($4 eq 'MODE') {
-            $hash{newmode} = $5;
+            $hash{newmode} = $6;
 
         } elsif ($4 eq 'JOIN') {
             $hash{newjoin} = $3;