From 73113956b6b4c4742bf3c9be07d4a9b0825b1297 Mon Sep 17 00:00:00 2001 From: forest2001 Date: Thu, 30 Nov 2023 03:34:38 +0000 Subject: [PATCH] I think it works now? --- code/modules/admin/tabs/admin_tab.dm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/code/modules/admin/tabs/admin_tab.dm b/code/modules/admin/tabs/admin_tab.dm index aab78c1b1464..11b20476a4a1 100644 --- a/code/modules/admin/tabs/admin_tab.dm +++ b/code/modules/admin/tabs/admin_tab.dm @@ -189,16 +189,23 @@ set name = "Check CKey" set category = "Admin" + var/mob/user = usr if (!istype(src,/datum/admins)) - src = usr.client.admin_holder + src = user.client.admin_holder if (!istype(src,/datum/admins) || !(src.rights & R_MOD)) - to_chat(usr, "Error: you are not an admin!") + to_chat(user, "Error: you are not an admin!") return if(!target_key) + to_chat(user, "Error: No key detected!") return + var/list/keys = list() + keys += analyze_ckey(target_key) + var/text_output = "Check Ckey Results: " + for(var/key in keys) + text_output += "[key]," + to_chat(user, SPAN_WARNING(text_output)) - analyze_ckey(target_key) - log_admin("[key_name(usr)] analyzed ckey '[target_key]'") + log_admin("[key_name(user)] analyzed ckey '[target_key]'") /datum/admins/proc/sleepall() set name = "Sleep All"