sbingner 23 лет назад
Родитель
Сommit
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];