https://gitlab.synchro.net/main/sbbs/-/commit/a6746a0a5757f5de8b0e41f3
Modified Files:
src/sbbs3/exec.cpp js_internal.cpp sbbs.h
Log Message:
Don't set the return value of a script -1 if it was auto-terminated
This caused unnecessary logged-errors, e.g.
evnt AVAT-OUT Timed event: '?avatars export -share' returned -1
this could happen if scripts (e.g. timed events) were still running at the time of termination and they were auto-terminated. So we'll just set the default return value 0 to instead. A script author can set the exit_code property
to a non-zero number if they really want an error or other notification to happen even if/when the script is auto-terminated.
--- SBBSecho 3.34-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)