From e25d7e38bb20e4afa98c6781ce12d77610483103 Mon Sep 17 00:00:00 2001 From: "johnsonmt88@gmail.com" Date: Mon, 20 Aug 2012 21:51:35 +0000 Subject: [PATCH] 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 --- code/defines/procs/helper_text.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/defines/procs/helper_text.dm b/code/defines/procs/helper_text.dm index 5f5f086943f..d5379b9daeb 100644 --- a/code/defines/procs/helper_text.dm +++ b/code/defines/procs/helper_text.dm @@ -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