mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user