fix (log): remove excess logging placement

This commit is contained in:
M'Dic
2023-04-08 09:48:14 -04:00
parent a0401b18c5
commit 28410687fe

View File

@@ -289,12 +289,7 @@ void AnticheatMgr::SpeedHackDetection(Player* player, MovementInfo movementInfo)
LOG_INFO("anticheat.module", "AnticheatMgr:: Speed-Hack (Speed Movement at {}% above allowed Server Set rate {}%.) detected player {} ({}) - Latency: {} ms - IP: {} - Cheat Flagged At: {}", clientSpeedRate, speedRate, player->GetName(), player->GetGUID().ToString(), latency, player->GetSession()->GetRemoteAddress().c_str(), goXYZ);
}
if (sConfigMgr->GetOption<bool>("Anticheat.CM.SPEEDHACK", true))
{ // display warning at the center of the screen, hacky way?
std::string str = "|cFFFFFC00[Playername:|cFF00FFFF[|cFF60FF00" + std::string(player->GetName().c_str()) + "|cFF00FFFF] SPEED HACK COUNTER MEASURE ALERT";
WorldPacket data(SMSG_NOTIFICATION, (str.size() + 1));
data << str;
sWorld->SendGlobalGMMessage(&data);
{
if (Aura* slowcheater = player->AddAura(SLOWDOWN, player))// SLOWDOWN
{
slowcheater->SetDuration(1000);