Don't parse "== START DUMP" or "== END DUMP" lines when attempting to load dumpfiles (another PEBKAC-check)

--HG--
branch : trunk
This commit is contained in:
click
2010-05-27 04:41:02 +02:00
parent c0f099c9c9
commit ca5f51d48f
+4 -2
View File
@@ -437,8 +437,10 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s
if (nw_pos == std::string::npos) if (nw_pos == std::string::npos)
continue; continue;
// skip NOTE // skip logfile-side dump start notice, the important notes and dump end notices
if (line.substr(nw_pos,15) == "IMPORTANT NOTE:") if ((line.substr(nw_pos,16) == "== START DUMP ==") ||
(line.substr(nw_pos,15) == "IMPORTANT NOTE:") ||
(line.substr(nw_pos,14) == "== END DUMP =="))
continue; continue;
// add required_ check // add required_ check