• Use bbs.exec() to execute msglist.js instead of load() for on-exit cle

    From Deuce@1:103/705 to GitLab note in main/sbbs on Monday, January 04, 2021 13:05:14
    https://gitlab.synchro.net/main/sbbs/-/commit/e389f2e7612b6985aa97340f180bea844927296a#note_1283

    There are already some calls to exit() in the script... when a message base can't be opened or contains no messages.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Monday, January 04, 2021 13:40:19
    https://gitlab.synchro.net/main/sbbs/-/commit/e389f2e7612b6985aa97340f180bea844927296a#note_1284

    Yeah, which means it (msglist.js) should not have been load()'d to begin with, so that was a wrong turn.I still think here's a problem with js.on_exit() however, because when email_sec.js (which is invoked via external->js_execfile) terminated, the on-exit handlers that were installed via the load()ed msglist.js where not executed.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)