- 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
+5
View File
@@ -335,12 +335,17 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket& recvData)
msg.erase(end, msg.end()); msg.erase(end, msg.end());
} }
// Skip validation for playerbots module
auto playerbotsHyperlink = msg.find("Hfound:") != std::string::npos;
if (!playerbotsHyperlink)
{
// Validate hyperlinks // Validate hyperlinks
if (!ValidateHyperlinksAndMaybeKick(msg)) if (!ValidateHyperlinksAndMaybeKick(msg))
{ {
return; return;
} }
} }
}
else else
{ {