feat(core): account delete hook (#18605)

Add account delete hook
This commit is contained in:
silviu20092
2024-03-27 01:57:42 +02:00
committed by GitHub
parent 16f220253a
commit 5b8bc792b8
4 changed files with 14 additions and 0 deletions

View File

@@ -68,6 +68,8 @@ namespace AccountMgr
if (!result)
return AOR_NAME_NOT_EXIST;
sScriptMgr->OnBeforeAccountDelete(accountId);
// Obtain accounts characters
CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_CHARS_BY_ACCOUNT_ID);
stmt->SetData(0, accountId);