fix(CORE/Commands): Renamed .character deleted old to .character deleted purge (#3300)

* fix(CORE/Commands): Renamed .character deleted old to .character deleted purge
Closes https://github.com/azerothcore/azerothcore-wotlk/issues/2925

* Fixed indentation

* Renamed handler function

* Spacing

* Update data/sql/updates/pending_db_world/rev_1597499028423474100.sql

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
Petric
2020-09-01 11:37:30 +01:00
committed by GitHub
parent 37248474af
commit 321cf0d2b3
2 changed files with 5 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ public:
{ "delete", SEC_CONSOLE, true, &HandleCharacterDeletedDeleteCommand, "" },
{ "list", SEC_ADMINISTRATOR, true, &HandleCharacterDeletedListCommand, "" },
{ "restore", SEC_ADMINISTRATOR, true, &HandleCharacterDeletedRestoreCommand, "" },
{ "old", SEC_CONSOLE, true, &HandleCharacterDeletedOldCommand, "" },
{ "purge", SEC_CONSOLE, true, &HandleCharacterDeletedPurgeCommand, "" },
};
static std::vector<ChatCommand> characterCheckCommandTable =
@@ -647,7 +647,7 @@ public:
*
* @param args the search string which either contains a player GUID or a part of the character-name
*/
static bool HandleCharacterDeletedOldCommand(ChatHandler* /*handler*/, char const* args)
static bool HandleCharacterDeletedPurgeCommand(ChatHandler* /*handler*/, char const* args)
{
int32 keepDays = sWorld->getIntConfig(CONFIG_CHARDELETE_KEEP_DAYS);