From ca5f51d48fc6b70927d731bdd6578f4f77fae33c Mon Sep 17 00:00:00 2001 From: click Date: Thu, 27 May 2010 04:41:02 +0200 Subject: Don't parse "== START DUMP" or "== END DUMP" lines when attempting to load dumpfiles (another PEBKAC-check) --HG-- branch : trunk --- src/game/PlayerDump.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/PlayerDump.cpp b/src/game/PlayerDump.cpp index 302afb1e629..8ebcbce50c8 100644 --- a/src/game/PlayerDump.cpp +++ b/src/game/PlayerDump.cpp @@ -437,8 +437,10 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s if (nw_pos == std::string::npos) continue; - // skip NOTE - if (line.substr(nw_pos,15) == "IMPORTANT NOTE:") + // skip logfile-side dump start notice, the important notes and dump end notices + if ((line.substr(nw_pos,16) == "== START DUMP ==") || + (line.substr(nw_pos,15) == "IMPORTANT NOTE:") || + (line.substr(nw_pos,14) == "== END DUMP ==")) continue; // add required_ check -- cgit v1.2.3