fix(Core/ChatHandler): Prevent messages > 255 characters (#3063)
This commit is contained in:
parent
428133dc5e
commit
3c5bb73f29
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue