Fix global proccalls not working

This commit is contained in:
Tad Hardesty
2018-05-22 01:27:54 -07:00
parent bdee2ed156
commit 12d108bc33
+1 -1
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