Similar naming restrictions applied to AIs. However numbers are allowed and only a minimum of one word is required for the name.

Names with he word "cyborg" in are rejected.
Fixed the "Invalid name" help message.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3958 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
elly1989@rocketmail.com
2012-07-01 02:53:55 +00:00
parent 6594f7098e
commit 20a799bc28
2 changed files with 21 additions and 14 deletions
+2 -2
View File
@@ -445,7 +445,7 @@ datum/preferences
switch(link_tags["real_name"])
if("input")
new_name = reject_bad_name( input(user, "Please select a name:", "Character Generation") as text|null )
new_name = reject_bad_name( input(user, "Please select a name:", "Character Generation") as text|null, 2 )
if("random")
randomize_name()
@@ -453,7 +453,7 @@ datum/preferences
if(new_name)
real_name = new_name
else
user << "<font color='red'>Invalid name. Your name should be at least ten letters and two words. It should be under [MAX_NAME_LEN] characters long. It may only contain the characters A-Z, a-z, -, ' and .</font>"
user << "<font color='red'>Invalid name. Your name should be at least 4 letters and two words but it should be under [MAX_NAME_LEN] characters long. It may only contain the characters A-Z, a-z, -, ' and .</font>"
if(link_tags["age"])
switch(link_tags["age"])