From 2452d2e85bd10b1161342a3dfc3d7003f9d9bc91 Mon Sep 17 00:00:00 2001 From: Markolie Date: Fri, 25 Sep 2015 02:32:31 +0200 Subject: [PATCH] Admin logging fixes --- code/modules/admin/admin.dm | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 394f582a15d..b7a5fa46935 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -795,7 +795,6 @@ var/global/nologevent = 0 log_admin("[key_name(usr)] spawned [chosen] at ([usr.x],[usr.y],[usr.z])") feedback_add_details("admin_verb","SA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! - /datum/admins/proc/show_traitor_panel(var/mob/M in mob_list) set category = "Admin" set desc = "Edit mobs's memory and role" @@ -839,7 +838,7 @@ var/global/nologevent = 0 usr << "AI [key_name(S, usr)]'s laws:" else if(isrobot(S)) var/mob/living/silicon/robot/R = S - usr << "CYBORG [key_name(S, usr)] [R.connected_ai?"(Slaved to: [R.connected_ai])":"(Independent)"]: laws:" + usr << "CYBORG [key_name(S, usr)]'s [R.connected_ai?"(Slaved to: [R.connected_ai])":"(Independent)"] laws:" else if (ispAI(S)) var/mob/living/silicon/pai/P = S usr << "pAI [key_name(S, usr)]'s laws:" @@ -847,14 +846,17 @@ var/global/nologevent = 0 if(P.pai_laws) usr << "[P.pai_laws]" continue // Skip showing normal silicon laws for pAIs - they don't have any else - usr << "SOMETHING SILICON [key_name(S, usr)]'s laws:" + usr << "SILICON [key_name(S, usr)]'s laws:" if (S.laws == null) - usr << "[key_name(S, usr)]'s laws are null?? Contact a coder." + usr << "[key_name(S, usr)]'s laws are null. Contact a coder." else S.laws.show_laws(usr) if(!ai_number) - usr << "No AIs located" //Just so you know the thing is actually working and not just ignoring you. + usr << "No AI's located." //Just so you know the thing is actually working and not just ignoring you. + + log_admin("[key_name(usr)] checked the AI laws") + message_admins("[key_name_admin(usr)] checked the AI laws") /client/proc/update_mob_sprite(mob/living/carbon/human/H as mob) set category = "Admin" @@ -864,10 +866,6 @@ var/global/nologevent = 0 if(!check_rights(R_ADMIN)) return - if (!holder) - src << "Only administrators may use this command." - return - if(istype(H)) H.regenerate_icons()