mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user