- Added support for playerbots message hyperlink (#37)

This commit is contained in:
kadeshar
2025-02-16 15:27:55 +01:00
committed by GitHub
parent 41415bb3c3
commit d1032678ff
+8 -3
View File
@@ -335,10 +335,15 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket& recvData)
msg.erase(end, msg.end()); msg.erase(end, msg.end());
} }
// Validate hyperlinks // Skip validation for playerbots module
if (!ValidateHyperlinksAndMaybeKick(msg)) auto playerbotsHyperlink = msg.find("Hfound:") != std::string::npos;
if (!playerbotsHyperlink)
{ {
return; // Validate hyperlinks
if (!ValidateHyperlinksAndMaybeKick(msg))
{
return;
}
} }
} }