Merge pull request #36980 from tgstation/Cyberboss-patch-1
Prevents direct Del() calls
This commit is contained in:
committed by
CitadelStationBot
parent
4817cb10de
commit
6ed0eee3f6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user