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,9 +335,12 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket& recvData)
|
|||||||
msg.erase(end, msg.end());
|
msg.erase(end, msg.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// mod_playerbots: 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user