Fixes admins getting stuck in proc security hell (#14607)

* Fixes admins getting stuck in proc security hell

* Forgot to remove my test
This commit is contained in:
AffectedArc07
2020-10-14 19:49:30 +01:00
committed by GitHub
parent 05408080a0
commit 6c8d01a784
+5 -1
View File
@@ -145,7 +145,11 @@ GLOBAL_PROTECT(AdminProcCallSpamPrevention)
GLOB.LastAdminCalledTargetUID = target.UID()
GLOB.AdminProcCaller = ckey //if this runtimes, too bad for you
++GLOB.AdminProcCallCount
. = world.WrapAdminProcCall(target, procname, arguments)
try
. = world.WrapAdminProcCall(target, procname, arguments)
catch
to_chat(usr, "<span class='adminnotice'>Your proc call failed to execute, likely from runtimes. You <i>should</i> be out of safety mode. If not, god help you.</span>")
if(--GLOB.AdminProcCallCount == 0)
GLOB.AdminProcCaller = null