diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index ac3dbc8..af8b5b9 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -769,6 +769,7 @@ bool AnticheatMgr::MustCheckTempReports(uint8 type) void AnticheatMgr::BuildReport(Player* player, uint16 reportType) { + OnReport(player, reportType); ObjectGuid key = player->GetGUID(); if (MustCheckTempReports(reportType)) diff --git a/src/AnticheatMgr.h b/src/AnticheatMgr.h index cf1b191..0474cef 100644 --- a/src/AnticheatMgr.h +++ b/src/AnticheatMgr.h @@ -31,6 +31,7 @@ #include "AnticheatData.h" #include "Chat.h" #include "ObjectGuid.h" +#include "EventEmitter.h" class Player; class AnticheatData; @@ -66,6 +67,8 @@ class AnticheatMgr return instance; } + EventEmitter OnReport; + void StartHackDetection(Player* player, MovementInfo movementInfo, uint32 opcode); void SavePlayerData(Player* player); void SavePlayerDataDaily(Player* player);