mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
[MIRROR] Fixes dumb code breaking toggle of playtime exempt status. (#3908)
* Fixes dumb code breaking toggle of playtime exempt status. (#57443) * Fixes dumb code breaking toggle of playtime exempt status. Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
@@ -75,13 +75,11 @@
|
||||
to_chat(usr, "<span class='danger'>ERROR: Insufficient admin rights.</span>", confidential = TRUE)
|
||||
return TRUE
|
||||
|
||||
var/client/owner_client = locate(owner) in GLOB.clients
|
||||
|
||||
if(!owner_client)
|
||||
if(QDELETED(owner))
|
||||
to_chat(usr, "<span class='danger'>ERROR: Client not found.</span>", confidential = TRUE)
|
||||
return TRUE
|
||||
|
||||
viewer_admin_datum.toggle_exempt_status(owner_client)
|
||||
viewer_admin_datum.toggle_exempt_status(owner)
|
||||
return TRUE
|
||||
|
||||
#undef JOB_REPORT_MENU_FAIL_REASON_TRACKING_DISABLED
|
||||
|
||||
Reference in New Issue
Block a user