mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 17:49:10 +00:00
fix(Scripts/Commands): cs_character - Restore character rename reserved_name functionality (#9195)
This commit is contained in:
committed by
GitHub
parent
70fbaefa8e
commit
91eb17f888
@@ -322,7 +322,7 @@ public:
|
||||
}
|
||||
|
||||
//rename characters
|
||||
static bool HandleCharacterRenameCommand(ChatHandler* handler, Optional<PlayerIdentifier> player, Optional<std::string_view> newNameV)
|
||||
static bool HandleCharacterRenameCommand(ChatHandler* handler, Optional<PlayerIdentifier> player, Optional<bool> reserveName, Optional<std::string_view> newNameV)
|
||||
{
|
||||
if (!player && newNameV)
|
||||
return false;
|
||||
@@ -417,6 +417,11 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
if (reserveName)
|
||||
{
|
||||
sObjectMgr->AddReservedPlayerName(player->GetName());
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user