feat(Core): add argument to .character rename to add name to reserved_name (#6163)

This commit is contained in:
Axel Cocat
2021-06-18 17:09:29 +02:00
committed by GitHub
parent 5a564ea498
commit 848bb0891b
6 changed files with 45 additions and 1 deletions

View File

@@ -1255,6 +1255,7 @@ public:
// reserved names
void LoadReservedPlayersNames();
[[nodiscard]] bool IsReservedName(std::string const& name) const;
void AddReservedPlayerName(std::string const& name);
// name with valid structure and symbols
static uint8 CheckPlayerName(std::string const& name, bool create = false);