Merge pull request #6855 from Citadel-Station-13/upstream-merge-37986

[MIRROR] Fix global proccalls not working
This commit is contained in:
LetterJay
2018-05-23 06:45:49 -05:00
committed by GitHub

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