From 75ed329ec8b3be6a34d3ba6056f24629c1c34649 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Wed, 4 Apr 2018 19:03:39 -0400 Subject: [PATCH] Prevents direct Del() calls --- code/modules/admin/verbs/debug.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index d365c56e17b..9460e71ea0b 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -111,6 +111,9 @@ GLOBAL_LIST_EMPTY(AdminProcCallSpamPrevention) GLOBAL_PROTECT(AdminProcCallSpamPrevention) /proc/WrapAdminProcCall(target, procname, list/arguments) + if(target && procname == "Del") + to_chat(usr, "Calling Del() is not allowed") + return var/current_caller = GLOB.AdminProcCaller var/ckey = usr ? usr.client.ckey : GLOB.AdminProcCaller if(!ckey)