- 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());
|
msg.erase(end, msg.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate hyperlinks
|
// 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user