Adds a proc to check if the current thread is from an admin advanced proc call (#400)
This commit is contained in:
committed by
TalkingCactus
parent
09572935ca
commit
fe57757fd7
@@ -78,6 +78,8 @@
|
||||
calling_arguments = calling_arguments + args //not += so that it creates a new list so the arguments list stays clean
|
||||
else
|
||||
calling_arguments = args
|
||||
if(var_edited)
|
||||
return WrapAdminProcCall(object, delegate, calling_arguments)
|
||||
if (object == GLOBAL_PROC)
|
||||
return call(delegate)(arglist(calling_arguments))
|
||||
return call(object, delegate)(arglist(calling_arguments))
|
||||
@@ -93,6 +95,8 @@
|
||||
calling_arguments = calling_arguments + args //not += so that it creates a new list so the arguments list stays clean
|
||||
else
|
||||
calling_arguments = args
|
||||
if(var_edited)
|
||||
return WrapAdminProcCall(object, delegate, calling_arguments)
|
||||
if (object == GLOBAL_PROC)
|
||||
return call(delegate)(arglist(calling_arguments))
|
||||
return call(object, delegate)(arglist(calling_arguments))
|
||||
|
||||
Reference in New Issue
Block a user