mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 22:26:22 +00:00
fix
This commit is contained in:
@@ -335,10 +335,15 @@ 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