Now supports renaming existing chars too

This commit is contained in:
Kyep
2017-07-18 22:11:55 -07:00
parent f5c8275060
commit 029a653b7d
@@ -1268,6 +1268,9 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts
var/new_name = reject_bad_name(raw_name, 1)
if(new_name)
real_name = new_name
if(isnewplayer(user))
var/mob/new_player/N = user
N.new_player_panel_proc()
else
to_chat(user, "<font color='red'>Invalid name. Your name should be at least 2 and at most [MAX_NAME_LEN] characters long. It may only contain the characters A-Z, a-z, -, ' and .</font>")