Merge pull request #155 from hermensbas/fix/fix_bots_cant_use_game_objects

[BUG FIX] Bots can't use game objects
This commit is contained in:
bashermens
2026-01-16 21:38:41 +01:00
committed by GitHub

View File

@@ -335,10 +335,13 @@ 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;
}
}