Multipart problem as I try to understand Loadable Modules better...
Actual problem:
I am trying to make DDMsgReader list files from the main 'L' option. When I do, it loads personal mail only instead of the sub, which makes me think that either I'm not doing a switch correctly or that Sync isn't passing that switch and is just loading the module without adding the switch. The loadable module in "List Msgs" is "DDReadPersonalMail -startMode=list". I've also tried -chooseAreaFirst and that doesn't seem to change behavior.
My knowledge problem:
When msg_list is called from default.src with Baja, I have no idea how that links up to src/sbbs3.
My testing confusion:
I'd like to be able to call DDReadPersonalMail.js directly from the terminal server, but I can't figure out how that's done. When I do ";EXEC ?" or whatever (I forget it now that I'm not in the menu), it says that it can't find it in the exec directory. Which is correct, because it's in the mods directory. Can I call a .js module from /mods or only from /exec?
execmsg.cpp:
case CS_MSG_LIST:
listsub(usrsub[curgrp][cursub[curgrp]], SCAN_INDEX, /* start: */0, /* search: */NULL);
exec_bin() does the "mods" then "exec" search for .js and .bin files, so it should work. --
Re: Running mod from sysop menu
By: Digital Man to Andre on Sun Feb 20 2022 12:16 pm
execmsg.cpp:
case CS_MSG_LIST:
listsub(usrsub[curgrp][cursub[curgrp]], SCAN_INDEX, /* start: */0, /* search: */NULL);
Ah, that's where I got lost in all my rushing around. It's funny, in all my looking through code yesterday, each time I looked at a file I would think, "Ah, yeah, that makes sense." Then today I got hit like a ton of bricks by the messaging code today and remembered, "Oh, that's right... all the code is in here because BBS is primarily messaging."
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 409 |
Nodes: | 16 (2 / 14) |
Uptime: | 46:01:39 |
Calls: | 8,569 |
Calls today: | 9 |
Files: | 13,222 |
Messages: | 5,928,876 |