mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 15:45:25 +01:00
gives PRRs access to debug logs (#17848)
* PRR access to debug logs * Update code/__HELPERS/_logging.dm Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
@@ -280,6 +280,7 @@ GLOBAL_LIST_INIT(admin_verbs_maintainer, list(
|
||||
verbs += /client/proc/view_runtimes
|
||||
verbs += /client/proc/cmd_display_del_log
|
||||
verbs += /client/proc/cmd_display_del_log_simple
|
||||
verbs += /client/proc/toggledebuglogs
|
||||
spawn(1) // This setting exposes the profiler for people with R_VIEWRUNTIMES. They must still have it set in cfg/admin.txt
|
||||
control_freak = 0
|
||||
|
||||
@@ -925,7 +926,7 @@ GLOBAL_LIST_INIT(admin_verbs_maintainer, list(
|
||||
set name = "Toggle Debug Log Messages"
|
||||
set category = "Preferences"
|
||||
|
||||
if(!check_rights(R_DEBUG))
|
||||
if(!check_rights(R_VIEWRUNTIMES | R_DEBUG))
|
||||
return
|
||||
|
||||
prefs.toggles ^= PREFTOGGLE_CHAT_DEBUGLOGS
|
||||
|
||||
Reference in New Issue
Block a user