The symbols ' - and . are no longer allowed at the beginning of player names as they cause problems with admin commands.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4504 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
johnsonmt88@gmail.com
2012-08-20 21:51:35 +00:00
parent 00a1ff2d97
commit e25d7e38bb

View File

@@ -59,6 +59,7 @@
else non_whitespace = 1
if(non_whitespace) return text //only accepts the text if it has some non-spaces
//Filters out undesirable characters from names
/proc/reject_bad_name(var/t_in, var/allow_numbers=0, var/max_length=MAX_NAME_LEN)
if(!t_in || length(t_in) > max_length)
@@ -94,6 +95,7 @@
// ' - .
if(39,45,46) //Common name punctuation
if(!last_char_group) continue
t_out += ascii2text(ascii_char)
last_char_group = 2