mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
[MIRROR] Webedit fixing SDQL global proc calls (#2420)
* Webedit fixing SDQL global proc calls (#55734) * Webedit fixing SDQK global proc calls Co-authored-by: AnturK <AnturK@ users.noreply.github.com> * Webedit fixing SDQL global proc calls Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> Co-authored-by: AnturK <AnturK@ users.noreply.github.com>
This commit is contained in:
@@ -803,8 +803,7 @@ GLOBAL_DATUM_INIT(sdql2_vv_statobj, /obj/effect/statclick/sdql2_vv_all, new(null
|
||||
for(var/arg in arguments)
|
||||
new_args[++new_args.len] = SDQL_expression(source, arg)
|
||||
if(object == GLOB) // Global proc.
|
||||
procname = "/proc/[procname]"
|
||||
return superuser? (call(procname)(new_args)) : (WrapAdminProcCall(GLOBAL_PROC, procname, new_args))
|
||||
return superuser? (call("/proc/[procname]")(new_args)) : (WrapAdminProcCall(GLOBAL_PROC, procname, new_args))
|
||||
return superuser? (call(object, procname)(new_args)) : (WrapAdminProcCall(object, procname, new_args))
|
||||
|
||||
/datum/sdql2_query/proc/SDQL_function_async(datum/object, procname, list/arguments, source)
|
||||
|
||||
Reference in New Issue
Block a user