Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
mukunda- committed Sep 6, 2014
1 parent b09f690 commit 592e0f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logparser2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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' ) {
Expand All @@ -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];
Expand Down

0 comments on commit 592e0f5

Please sign in to comment.