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
+6 -3
View File
@@ -335,10 +335,13 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket& recvData)
msg.erase(end, msg.end()); msg.erase(end, msg.end());
} }
// Validate hyperlinks // mod_playerbots: 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;
} }
} }