summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2020-05-10 18:51:56 +0000
committerDominique Martinet <asmadeus@codewreck.org>2020-05-10 18:51:56 +0000
commitcfe1f01bea60817fdbd4e18b6f811945014ad1c5 (patch)
tree5b25e71c840353136764689fea7e78b8affbb297
parent02ab6a02a801027e194916ec50739b236c0f329e (diff)
parse_Everquest: fix parsing (wth was fixed ages ago where did it go?)
-rw-r--r--admin/parse_Everquest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/parse_Everquest.php b/admin/parse_Everquest.php
index 26d0ecf..74b3729 100644
--- a/admin/parse_Everquest.php
+++ b/admin/parse_Everquest.php
@@ -141,13 +141,14 @@ class Parse_Log extends EQdkp_Admin
$line_to_read = str_replace("\t", ' ', $log_file[$i]);
}
- if (preg_match("/^[0-9]{1,2} (.+) ([0-9]{1,2}) ([a-z A-Z]+)/", $line_to_read, $raid_line))
+ if (preg_match("/^[0-9]{1,2} (.+) ([0-9]{1,3}) ([a-z A-Z]+)/", $line_to_read, $raid_line))
{
$memberName = $raid_line[1];
$memberLevel = $raid_line[2];
$memberClass = $raid_line[3];
$line = preg_replace("/ Group Leader/", '', $memberClass);
$line = preg_replace("/ Raid Leader/", '', $line);
+ $line = preg_replace("/ (Yes|No)/", '', $line);
$memberClass = $line;
if ( $memberClass == 'Shadow' ) {