fix(core/packet): prevent client crash from malformed packet/message (#2910)

* Update AuctionHouseHandler.cpp

* fix(core/packet): prevent crash from malformed string
This commit is contained in:
Stefano Borzì
2020-04-21 00:00:26 +02:00
committed by GitHub
parent 1603646aad
commit ad6985f459
+5
View File
@@ -329,6 +329,11 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket & recvData)
}
}
// prevent crash player
if (msg.find("| |Hquest") != std::string::npos) {
return;
}
sScriptMgr->OnBeforeSendChatMessage(_player, type, lang, msg);
switch (type)