Adds a proc to check if the current thread is from an admin advanced proc call (#400)

This commit is contained in:
CitadelStationBot
2017-04-15 13:41:36 -05:00
committed by TalkingCactus
parent 09572935ca
commit fe57757fd7
5 changed files with 60 additions and 8 deletions

View File

@@ -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))