mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/ChatHandler): Prevent messages > 255 characters (#3063)
This commit is contained in:
@@ -281,7 +281,7 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket & recvData)
|
|||||||
stripLineInvisibleChars(msg);
|
stripLineInvisibleChars(msg);
|
||||||
|
|
||||||
// pussywizard:
|
// pussywizard:
|
||||||
if (lang != LANG_ADDON && msg.find("|0") != std::string::npos)
|
if (msg.length() > 255 || (lang != LANG_ADDON && msg.find("|0") != std::string::npos))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!ignoreChecks)
|
if (!ignoreChecks)
|
||||||
|
|||||||
Reference in New Issue
Block a user