mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #5962 from GeneriedJenelle/patch-1
Prevents people from joining with the same character
This commit is contained in:
@@ -170,6 +170,13 @@
|
|||||||
|
|
||||||
if(href_list["SelectedJob"])
|
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)
|
if(!config.enter_allowed)
|
||||||
usr << "<span class='notice'>There is an administrative lock on entering the game!</span>"
|
usr << "<span class='notice'>There is an administrative lock on entering the game!</span>"
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user