diff --git a/code/controllers/subsystem/SStimer.dm b/code/controllers/subsystem/SStimer.dm index bf15806b15de..2c1e345994e9 100644 --- a/code/controllers/subsystem/SStimer.dm +++ b/code/controllers/subsystem/SStimer.dm @@ -582,7 +582,7 @@ GLOBAL_LIST_EMPTY(timers_by_type) set category = "Debug" set desc = "Shows the log of what types created timers this round" - if(!check_rights(R_DEBUG)) + if(!check_rights(R_DEBUG | R_VIEWRUNTIMES)) return var/list/sorted = sortTim(GLOB.timers_by_type, GLOBAL_PROC_REF(cmp_numeric_dsc), TRUE) @@ -598,6 +598,9 @@ GLOBAL_LIST_EMPTY(timers_by_type) set category = "Debug" set desc = "Shows currently active timers, grouped by callback" + if(!check_rights(R_DEBUG | R_VIEWRUNTIMES)) + return + var/list/timers = list() for(var/id in SStimer.timer_id_dict) var/datum/timedevent/T = SStimer.timer_id_dict[id] diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 6dfda9d32708..550d0a6f356a 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -250,7 +250,9 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list( /client/proc/show_gc_queues, /client/proc/toggle_mctabs, /client/proc/debug_global_variables, - /client/proc/visualise_active_turfs + /client/proc/visualise_active_turfs, + /client/proc/debug_timers, + /client/proc/timer_log )) /client/proc/on_holder_add()