Fixes `"Return Value of Proccall"` breaking on list returns (#93727)

## About The Pull Request

Closes #93693

## Changelog
🆑
fix: Fixed ``"Return Value of Proccall"`` breaking on list returns when
an admin calls a proc
/🆑
This commit is contained in:
SmArtKar
2025-11-02 15:30:07 +01:00
committed by GitHub
parent 55c965af03
commit d72dde631c
+4 -1
View File
@@ -159,7 +159,10 @@ ADMIN_VERB(advanced_proc_call, R_DEBUG, "Advanced ProcCall", "Call a proc on any
returnval = WrapAdminProcCall(GLOBAL_PROC, procname, lst) // Pass the lst as an argument list to the proc
BLACKBOX_LOG_ADMIN_VERB("Advanced ProcCall")
if(get_retval)
get_retval += returnval
if (islist(returnval))
get_retval += list(returnval) // Wrap to stop BYOND from concat-ing the lists
else
get_retval += returnval
. = get_callproc_returnval(returnval, procname)
if(.)
to_chat(usr, ., confidential = TRUE)