fix: not checking pending names on rename (#1954)

This commit is contained in:
David Markowitz
2026-02-11 19:49:39 -08:00
committed by GitHub
parent c723ce2588
commit 347b1d17d4

View File

@@ -514,7 +514,7 @@ void UserManager::RenameCharacter(const SystemAddress& sysAddr, Packet* packet)
return; return;
} }
if (!Database::Get()->GetCharacterInfo(newName)) { if (!Database::Get()->IsNameInUse(newName)) {
if (autoRejectNames) { if (autoRejectNames) {
Database::Get()->SetCharacterName(objectID, newName); Database::Get()->SetCharacterName(objectID, newName);
LOG("Character %s auto-renamed to preapproved name %s due to mute", character->GetName().c_str(), newName.c_str()); LOG("Character %s auto-renamed to preapproved name %s due to mute", character->GetName().c_str(), newName.c_str());