From 28410687fec28cadb146bb1f6d111c9e515c1323 Mon Sep 17 00:00:00 2001 From: M'Dic Date: Sat, 8 Apr 2023 09:48:14 -0400 Subject: [PATCH] fix (log): remove excess logging placement --- src/AnticheatMgr.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index bf9dbb8..1fdfc1d 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -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("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);