Add: Purge cmd

.anticheat purge clears the whole daily_player_reports table. only administrator level can do run the command.
This commit is contained in:
MDIC
2022-04-09 13:41:46 -04:00
parent 3d98caf636
commit bac7aefd12
3 changed files with 14 additions and 1 deletions

View File

@@ -781,6 +781,11 @@ void AnticheatMgr::AnticheatDeleteCommand(ObjectGuid guid)
}
}
void AnticheatMgr::AnticheatPurgeCommand(ChatHandler* handler)
{
CharacterDatabase.Execute("TRUNCATE TABLE daily_players_reports;");
}
void AnticheatMgr::ResetDailyReportStates()
{
for (AnticheatPlayersDataMap::iterator it = m_Players.begin(); it != m_Players.end(); ++it)