From e4273feb35f0ab7f6fdea53c73a87cf7c9e544f7 Mon Sep 17 00:00:00 2001 From: Evildragon Date: Wed, 10 Apr 2024 01:17:47 +0900 Subject: [PATCH] debug warning fix --- code/modules/admin/verbs/debug.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index bc8b96dd6feec..5b841fc644cb4 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -1127,9 +1127,11 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that var/target_key = input(usr, "Choose an image group key to see","Client Image Holders (Add)") as null|anything in GLOB.cimg_controller.cimg_holders if(!target_key) return + if(target_key in GLOB.cimg_controller.cimgkey_by_mob[src.mob]) // you already have this + return GLOB.cimg_controller.validate_mob(target_key, src.mob) - message_admins("[key_name_admin(src)] validated cimg key [target_key] to themselves.") + message_admins("[key_name_admin(src)] validated cimg key \"[target_key]\" to themselves.") /client/proc/cimg_disqualify() set category = "Debug" @@ -1148,4 +1150,4 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that return GLOB.cimg_controller.disqualify_mob(target_key, src.mob) - message_admins("[key_name_admin(src)] disqualified cimg key [target_key] from themselves.") + message_admins("[key_name_admin(src)] disqualified cimg key \"[target_key]\" from themselves.")