chore(Core/Global): Fix grouping of Worldserver initialization (#4130)

This commit is contained in:
Kitzunu
2021-01-25 20:50:53 +01:00
committed by GitHub
parent 49712bd12f
commit 879468506f
14 changed files with 52 additions and 7 deletions

View File

@@ -5165,6 +5165,7 @@ void Player::DeleteOldCharacters()
void Player::DeleteOldCharacters(uint32 keepDays)
{
sLog->outString("Player::DeleteOldChars: Deleting all characters which have been deleted %u days before...", keepDays);
sLog->outString();
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_CHAR_OLD_CHARS);
stmt->setUInt32(0, uint32(time(nullptr) - time_t(keepDays * DAY)));