src/sbbs3 exec.cpp 1.98 1.99 ftpsrvr.c 1.408 1.409 js_global.c 1.339 1.340 js_internal.c 1.82 1.83 jsexec.c 1.168 1.169 mailsrvr.c 1.575 1.576 sbbs.h 1.408 1.409 services.c 1.275 1.276 websrvr.c 1.579 1.580
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv26673
Modified Files:
exec.cpp ftpsrvr.c js_global.c js_internal.c jsexec.c
mailsrvr.c sbbs.h services.c websrvr.c
Log Message:
Fix exit() behaviour by introducing the new js.scope value which is the
scripts global scope (as opposed to js.global which is the instance global scope), and having exit() define exit_code in js.scope instead of js.global.
This also sets exit_code in js.scope to null when preparing to execute a new script. If a new script starts in the same scope as an old one, the old exit_code value will be destroyed.
This should only impact scripts where js.global != js.scope (bbs.exec()ed,
and mailsrvr)
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net