Subj : Can't get new shell to load
To : nelgin
From : Nightfox
Date : Sat Apr 19 2025 01:34 pm
Re: Can't get new shell to load
By: nelgin to Digital Man on Sat Apr 19 2025 03:23 am
ne> case 'D': bbs.exec('?/sbbs/mods/user_settings.js');
ne> If they pick a new shell, such as Synchronet Classic then
ne> user.command_shell is set accordingly ("default" in this case).
ne> However I still have my old menu. I've tried putting exit() in various
ne> places but didn't seem to have any effect. What am I doing wrong?
I ran into that a while ago. This is what I have in my (custom) JS shell for user settings (and this works for me):
user.cached = false;
var oldShell = user.command_shell;
bbs.user_config(); // This could directly run user_settings.js instead
user.cached = false;
bbs.user_sync();
// If the user has chosen a different command shell, then exit
// out of this one.
if (user.command_shell != oldShell)
exit(0);
Nightfox
---
� Synchronet � Digital Distortion: digitaldistortionbbs.com