mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Few more portability fixes
This commit is contained in:
+2
-2
@@ -1518,11 +1518,11 @@ bool Bot::IsValidName(std::string& name)
|
||||
{
|
||||
if (name.length() < 4)
|
||||
return false;
|
||||
if (!IsCharUpper(name[0]))
|
||||
if (!isupper(name[0]))
|
||||
return false;
|
||||
|
||||
for (int i = 1; i < name.length(); ++i) {
|
||||
if (!IsCharLower(name[i]) && name[i] != '_') {
|
||||
if (!islower(name[i]) && name[i] != '_') {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user