Merge pull request #5962 from GeneriedJenelle/patch-1

Prevents people from joining with the same character
This commit is contained in:
Anewbe
2019-02-18 14:12:51 -06:00
committed by VirgoBot
parent 30ab44613d
commit ceb2c7112e

View File

@@ -169,6 +169,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>"