This commit is contained in:
bash
2026-01-16 21:35:16 +01:00
parent 8f1ba2a484
commit 1589861810

View File

@@ -335,10 +335,15 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket& recvData)
msg.erase(end, msg.end());
}
// Validate hyperlinks
if (!ValidateHyperlinksAndMaybeKick(msg))
// mod_playerbots: skip validation for playerbots module
auto playerbotsHyperlink = msg.find("Hfound:") != std::string::npos;
if (!playerbotsHyperlink)
{
return;
// Validate hyperlinks
if (!ValidateHyperlinksAndMaybeKick(msg))
{
return;
}
}
}