I'm a bit stuck on how to do this with my own shell since it works with the others. I'm guessing it's because I use a 2nd menu for my default settings?
user first loads mods/eotl.js
At this point user.command_shell is "eotl"
At the menu they press S for settings
'S': { exec: 'eotl_settings.js' },
Settings uses the old style menu. They select D for Default Settings:
case 'D': bbs.exec('?/sbbs/mods/user_settings.js');
If they pick a new shell, such as Synchronet Classic then user.command_shell is set accordingly ("default" in this case).
However I still have my old menu. I've tried putting exit() in various places but didn't seem to have any effect. What am I doing wrong?
case 'D': bbs.exec('?/sbbs/mods/user_settings.js');
If they pick a new shell, such as Synchronet Classic then user.command_shell is set accordingly ("default" in this case).
However I still have my old menu. I've tried putting exit() in various 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):
| Sysop: | LaF0rge |
|---|---|
| Location: | Berlin, Germany |
| Users: | 137 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 155:36:21 |
| Calls: | 874 |
| Calls today: | 874 |
| Files: | 12 |
| U/L today: |
13 files (32,779K bytes) |
| D/L today: |
607 files (726M bytes) |
| Messages: | 17,696 |
| Posted today: | 28 |