From a9736714e852a214a1b23f8241dd74383ce90911 Mon Sep 17 00:00:00 2001 From: Shadowlight213 Date: Thu, 11 Jan 2018 14:02:01 -0800 Subject: [PATCH] Fixes displaying non crew roles in the exp report. Lets players see their own playtime. Fixes admin exp bypass not using the correct proc to check rights. --- code/modules/admin/verbs/randomverbs.dm | 7 +++++++ code/modules/client/client_procs.dm | 2 ++ code/modules/client/verbs/ooc.dm | 15 +++++++++++++++ code/modules/jobs/job_exp.dm | 18 +++++++++++++----- 4 files changed, 37 insertions(+), 5 deletions(-) diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index e5f08b82bc0..c12fd1de10b 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -1261,6 +1261,10 @@ GLOBAL_LIST_EMPTY(custom_outfits) //Admin created outfits if(!check_rights(R_ADMIN)) return + if(!CONFIG_GET(flag/use_exp_tracking)) + to_chat(usr, "Tracking is disabled in the server configuration file.") + return + var/list/msg = list() msg += "Playtime ReportPlaytime:
" var/list/jobs_locked = list()