Merge pull request #37986 from AutomaticFrenzy/patch/sneaky-cyberboss

Fix global proccalls not working
This commit is contained in:
Jordan Brown
2018-05-22 09:05:00 -04:00
committed by letterjay
parent 292c5dfa96
commit 9f8ef69014

View File

@@ -115,7 +115,7 @@ GLOBAL_PROTECT(AdminProcCallSpamPrevention)
to_chat(usr, "Calling Del() is not allowed")
return
if(!target.CanProcCall(procname))
if(target != GLOBAL_PROC && !target.CanProcCall(procname))
to_chat(usr, "Proccall on [target.type]/proc/[procname] is disallowed!")
return
var/current_caller = GLOB.AdminProcCaller