Permalink
Browse files

oops

  • Loading branch information...
mukunda- committed Sep 6, 2014
1 parent b09f690 commit 592e0f5a7ec60b72e657e5057df1556f62de0664
Showing with 2 additions and 2 deletions.
  1. +2 −2 logparser2.php
View
@@ -92,7 +92,7 @@ function ParseLog( $filepath, $simple=false, $starttime=0, $duration=0, $ticks=0
$file = fopen( $filepath, "r" );
if( !$file ) return FALSE;
$target_regex = '"(.+?)<([^>]+?)><([^>]+?)>(<[A-Z]+>)?"';
$target_regex = '"(.+?)<[^>]+?><([^>]+?)>(<[A-Z]+>)?"';
$regex_playeraction = '/^'.$target_regex.' (?:\[.+?\] )?([a-z]+?) (.*)/S';
$regex_switched = '/^from team <(.*?)> to (<.*?>)/S';
@@ -168,6 +168,7 @@ function ParseLog( $filepath, $simple=false, $starttime=0, $duration=0, $ticks=0
$self = $highlight==""?FALSE:($steamid == $highlight);
switch( $action ) {
case "entered":
if( $simple ) break;
if( $data == 'the game' ) {
@@ -191,7 +192,6 @@ function ParseLog( $filepath, $simple=false, $starttime=0, $duration=0, $ticks=0
}
break;
case "killed":
if( preg_match( $regex_killed, $data, $matches ) ) {
$victimid = $matches[2];

0 comments on commit 592e0f5

Please sign in to comment.