- 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

View File

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