My fix was based off of the latest download from the HLStatsX website.

Here's what the code should look like at the second part:

# Get the datestamp (or complain)
$is_streamed = 0; 
$test_for_date = 0; 
$is_streamed = ($s_output !~ m/^L\s*/);

if ( !$is_streamed ) {
        $test_for_date = ($s_output =~ s/^L (\d\d)\/(\d\d)\/(\d{4}) -
(\d\d):(\d\d):(\d\d):\s*//); 
} else { 
        $test_for_date = ($s_output =~ s/^\S*L (\d\d)\/(\d\d)\/(\d{4}) -
(\d\d):(\d\d):(\d\d):\s*//); 
}

if ($test_for_date)
{
        $ev_month = $1;
        $ev_day   = $2;
        $ev_year  = $3;
        $ev_hour  = $4;
        $ev_min   = $5;
        $ev_sec   = $6;
        $ev_time  = "$ev_hour:$ev_min:$ev_sec";

        if ($g_timestamp){
                $ev_timestamp = "$ev_year-$ev_month-$ev_day $ev_time";
                $ev_datetime  = "'$ev_timestamp'";
                $ev_unixtime  =
timelocal($ev_sec,$ev_min,$ev_hour,$ev_day,$ev_month-1,$ev_year);
        }
} else {
        &printEvent(998, "MALFORMED DATA: " . $s_output);
        next;
}

# Now we parse the events.



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds

Reply via email to