Prevents people from joining with the same character

Just a check on late spawn to prevent people from rejoining constantly as the same char.
This commit is contained in:
GeneriedJenelle
2019-02-15 05:53:22 +00:00
committed by GitHub
parent e832f91bf0
commit 32c8600cbb
@@ -163,6 +163,13 @@
ViewManifest()
if(href_list["SelectedJob"])
//Prevents people rejoining as same character.
for (var/mob/living/carbon/human/C in mob_list)
var/char_name = client.prefs.real_name
if(char_name == C.real_name)
usr << "<span class='notice'>There is a character that already exists with the same name - <b>[C.real_name]</b>, please join with a different one.</span>"
return
if(!config.enter_allowed)
usr << "<span class='notice'>There is an administrative lock on entering the game!</span>"