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:
@@ -0,0 +1,3 @@
|
|||||||
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1597499028423474100');
|
||||||
|
|
||||||
|
UPDATE `command` SET `name` = "character deleted purge", `help` = "Syntax: .character deleted purge [#keepDays]\r\nCompletely removes all characters from the database that where deleted more than #keepDays ago. If #keepDays not provided the used value from worldserver.conf option 'CharDelete.KeepDays'. If 'CharDelete.KeepDays' option is disabled (set to value 0) then this command can't be used without the specifying #keepDays parameter." WHERE (`name` = "character deleted old");
|
||||||
@@ -38,7 +38,7 @@ public:
|
|||||||
{ "delete", SEC_CONSOLE, true, &HandleCharacterDeletedDeleteCommand, "" },
|
{ "delete", SEC_CONSOLE, true, &HandleCharacterDeletedDeleteCommand, "" },
|
||||||
{ "list", SEC_ADMINISTRATOR, true, &HandleCharacterDeletedListCommand, "" },
|
{ "list", SEC_ADMINISTRATOR, true, &HandleCharacterDeletedListCommand, "" },
|
||||||
{ "restore", SEC_ADMINISTRATOR, true, &HandleCharacterDeletedRestoreCommand, "" },
|
{ "restore", SEC_ADMINISTRATOR, true, &HandleCharacterDeletedRestoreCommand, "" },
|
||||||
{ "old", SEC_CONSOLE, true, &HandleCharacterDeletedOldCommand, "" },
|
{ "purge", SEC_CONSOLE, true, &HandleCharacterDeletedPurgeCommand, "" },
|
||||||
};
|
};
|
||||||
|
|
||||||
static std::vector<ChatCommand> characterCheckCommandTable =
|
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
|
* @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);
|
int32 keepDays = sWorld->getIntConfig(CONFIG_CHARDELETE_KEEP_DAYS);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user