Added rule Bots:AllowCamelCaseNames

This commit is contained in:
Uleat committed 2016-06-23 22:25:57 -04:00
1 parent fe630bf7ca
commit 951f3239f1
5 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -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;
}
}