浏览代码

Bugfixes, sombody slap me...

sbingner 24 年之前
父节点
当前提交
79d2e0506f
共有 1 个文件被更改,包括 8 次插入 和 4 次删除
  1. 8 4
      modules/Pisg/Parser/Format/dircproxy.pm

+ 8 - 4
modules/Pisg/Parser/Format/dircproxy.pm

@@ -11,9 +11,9 @@ sub new
 
     my $self = {
         cfg => $args{cfg},
-        normalline => '@^(\d+)\s<([^!]+)![^>]+>\s(.+)$',
-        actionline => '@^(\d+)\s\[([^!]+)![^\]]+\]\sACTION\s(.+)$',
-	thirdline  => '@^(\d+)\s\-\S+\-\s(.+)
+        normalline => '^@(\d+)\s<([^!]+)![^>]+>\s(.+)$',
+        actionline => '^@(\d+)\s\[([^!]+)![^\]]+\]\sACTION\s(.+)$',
+	thirdline  => '^@(\d+)\s\-(\S+)\-\s(.+)$'
     };
 
     bless($self, $type);
@@ -61,7 +61,11 @@ sub thirdline
 
     if ($line =~ /$self->{thirdline}/o) {
         my ($time, @line);
-        @line = split(/\s+/, $2);
+
+        return
+            if ($2 eq 'dircproxy');
+
+        @line = split(/\s+/, $3);
 
         my @time = localtime($1);
         $hash{hour} = $time[2];