https://gitlab.synchro.net/main/sbbs/-/commit/0b782f459ed145f00a410835
Modified Files:
src/sbbs3/js_user.c scfglib.h scfglib1.c userdat.c
Log Message:
Allow JS 'user.editor' and '.shell' to be set for non-users (e.g. user #0)The request from Nightfox and Accession via DOVE-Net was to be able to seta user's external editor even if there's no user logged-in.These 2 user class properties
in the JS object model were a bit special inthat they *only* wrote to the user database and did not immediately modifythe in-memory copy of the user_t structure, depending on the re-reading ofthe user.dat/tab file to re-populate the current user_t structure when needed.This didn't work if the current user is user #0 (no user).So, set the current user_t.xedit and user_t.shell accordingly whenever thoseJS properties are assigned a value (a string, the appropriate internal code).
--- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)