Skip to content

Commit

Permalink
permit char names with maximum of 18 characters (need fix in site too).
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel committed Dec 17, 2023
1 parent 3561589 commit 5e13cb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions data/modules/scripts/gamestore/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1366,8 +1366,8 @@ GameStore.canUseHirelingName = function(name)
local result = {
ability = false,
}
if name:len() < 3 or name:len() > 14 then
result.reason = "The length of the hireling name must be between 3 and 14 characters."
if name:len() < 3 or name:len() > 18 then
result.reason = "The length of the hireling name must be between 3 and 18 characters."
return result
end

Expand Down Expand Up @@ -1422,8 +1422,8 @@ GameStore.canChangeToName = function(name)
local result = {
ability = false,
}
if name:len() < 3 or name:len() > 14 then
result.reason = "The length of your new name must be between 3 and 14 characters."
if name:len() < 3 or name:len() > 18 then
result.reason = "The length of your new name must be between 3 and 18 characters."
return result
end

Expand Down
2 changes: 1 addition & 1 deletion src/utils/tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ NameEval_t validateName(const std::string &name) {
std::istream_iterator<std::string> end;
std::copy(begin, end, std::back_inserter(toks));

if (name.length() < 3 || name.length() > 14) {
if (name.length() < 3 || name.length() > 18) {
return INVALID_LENGTH;
}

Expand Down

0 comments on commit 5e13cb7

Please sign in to comment.