From 20faf722c35a6f02f687de0951eb68952112b402 Mon Sep 17 00:00:00 2001 From: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Date: Thu, 20 Oct 2022 23:02:39 +0100 Subject: [PATCH] Fix a cid warning (#19435) --- code/modules/mob/login.dm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/code/modules/mob/login.dm b/code/modules/mob/login.dm index 87388138f45..4020205c6e7 100644 --- a/code/modules/mob/login.dm +++ b/code/modules/mob/login.dm @@ -6,18 +6,21 @@ log_access_in(client) create_attack_log("Logged in at [atom_loc_line(get_turf(src))]") create_log(MISC_LOG, "Logged in") - if(GLOB.configuration.logging.access_logging) + if(GLOB.configuration.logging.access_logging && !(client.computer_id in GLOB.configuration.admin.common_cid_map)) for(var/mob/M in GLOB.player_list) - if(M == src) continue - if( M.key && (M.key != key) ) + if(M == src) + continue + if(M.key && (M.key != key)) var/matches - if( (M.lastKnownIP == client.address) ) + if(M.lastKnownIP == client.address) matches += "IP ([client.address])" - if( (M.computer_id == client.computer_id) ) - if(matches) matches += " and " + if(M.computer_id == client.computer_id) + if(matches) + matches += " and " matches += "ID ([client.computer_id])" if(!GLOB.configuration.general.disable_cid_warning_popup) - spawn() alert("You have logged in already with another key this round, please log out of this one NOW or risk being banned!") + spawn() + alert("You have logged in already with another key this round, please log out of this one NOW or risk being banned!") if(matches) if(M.client) message_admins("Notice: [key_name_admin(src)] has the same [matches] as [key_name_admin(M)].", 1)