mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +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);
|
||||
|
||||
// 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;
|
||||
|
||||
if (!ignoreChecks)
|
||||
|
||||
Reference in New Issue
Block a user