Skip to content

Commit

Permalink
Admin proccall followup fix PR port (#14037)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmixo authored Sep 28, 2023
1 parent a434545 commit 96ecf73
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/modules/admin/callproc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ GLOBAL_PROTECT(AdminProcCallHandler)

/mob/proccall_handler/Initialize(mapload)
. = ..()
if(GLOB.AdminProcCallHandler)
if(GLOB.AdminProcCallHandler && GLOB.AdminProcCallHandler != src)
return INITIALIZE_HINT_QDEL
GLOB.AdminProcCallHandler = src

/mob/proccall_handler/vv_edit_var(var_name, var_value)
if(GLOB.AdminProcCallHandler != src)
Expand All @@ -43,9 +44,7 @@ GLOBAL_PROTECT(AdminProcCallHandler)
if(GLOB.AdminProcCallHandler != src)
return ..()
if(!force)
#ifndef UNIT_TESTS
stack_trace("Attempted deletion on [type] - [name], aborting.")
#endif
return QDEL_HINT_LETMELIVE
return ..()

Expand Down

0 comments on commit 96ecf73

Please sign in to comment.