mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[7166] Make reserved name check case-insensitive.
Original patch provided by jpmythic.
This commit is contained in:
parent
df13468ee1
commit
737600a665
3 changed files with 24 additions and 9 deletions
|
|
@ -702,10 +702,7 @@ class ObjectMgr
|
|||
|
||||
// reserved names
|
||||
void LoadReservedPlayersNames();
|
||||
bool IsReservedName(const std::string& name) const
|
||||
{
|
||||
return m_ReservedNames.find(name) != m_ReservedNames.end();
|
||||
}
|
||||
bool IsReservedName(const std::string& name) const;
|
||||
|
||||
// name with valid structure and symbols
|
||||
static bool IsValidName( const std::string& name, bool create = false );
|
||||
|
|
@ -834,7 +831,7 @@ class ObjectMgr
|
|||
PetCreateSpellMap mPetCreateSpell;
|
||||
|
||||
//character reserved names
|
||||
typedef std::set<std::string> ReservedNamesMap;
|
||||
typedef std::set<std::wstring> ReservedNamesMap;
|
||||
ReservedNamesMap m_ReservedNames;
|
||||
|
||||
GraveYardMap mGraveYardMap;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue