mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Added rule Bots:AllowCamelCaseNames
This commit is contained in:
+1
-1
@@ -1538,7 +1538,7 @@ bool Bot::IsValidName(std::string& name)
|
||||
return false;
|
||||
|
||||
for (int i = 1; i < name.length(); ++i) {
|
||||
if (!islower(name[i]) && name[i] != '_') {
|
||||
if ((!RuleB(Bots, AllowCamelCaseNames) && !islower(name[i])) && name[i] != '_') {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user