mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-02-14 06:49:51 +00:00
fix: not checking pending names on rename (#1954)
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user