mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
- Added support for playerbots message hyperlink (#37)
This commit is contained in:
@@ -335,10 +335,15 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket& recvData)
|
||||
msg.erase(end, msg.end());
|
||||
}
|
||||
|
||||
// Validate hyperlinks
|
||||
if (!ValidateHyperlinksAndMaybeKick(msg))
|
||||
// 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