[7166] Make reserved name check case-insensitive.

Original patch provided by jpmythic.
This commit is contained in:
VladimirMangos 2009-01-25 02:33:33 +03:00
parent df13468ee1
commit 737600a665
3 changed files with 24 additions and 9 deletions

View file

@ -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;