From ceb2c7112ee53a0c4607403d93d9b38edc2c87cf Mon Sep 17 00:00:00 2001 From: Anewbe Date: Mon, 18 Feb 2019 14:12:51 -0600 Subject: [PATCH] Merge pull request #5962 from GeneriedJenelle/patch-1 Prevents people from joining with the same character --- code/modules/mob/new_player/new_player.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index ea278283855..cd9171ab756 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -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 << "There is a character that already exists with the same name - [C.real_name], please join with a different one." + return if(!config.enter_allowed) usr << "There is an administrative lock on entering the game!"