Virtual Private Server (VPS) Hosting provided by Central Point Networking cpnllc.com
For some reason, the "Nodelist" and "Recent Callers" features are not working.
Sysop: | Ray Quinn |
---|---|
Location: | Visalia, CA |
Users: | 56 |
Nodes: | 10 (0 / 10) |
Uptime: | 149:05:41 |
Calls: | 9 |
Files: | 12,168 |
Messages: | 150,870 |
Check out the US 99 menu above for links to information about US Highway 99, after which the US 99 BBS is named.
Be sure to click on the Amateur Radio menu item above for packet BBSes, packet software, packet organizations, as well as packet how-to's. Also included is links to local and some not-so-local Amateur Radio Clubs.
5/26 16:56:00 term Node 1 <Test> !JavaScript /opt/sbbs/exec/logon.js line 12: TypeError: load is not a function
If I dont call bbs.logon(), then I get an error after bbs.login()
5/26 17:00:33 term Node 1 <Test> - EXIT:
5/26 17:00:33 term Node 1 <Test> !ERROR 0 (Success) in answer.cpp line 488 (answer) checking "User not logged on" access=0
Re: Some help with login/logon and shell javascript
By: alterego to Digital Man on Tue May 26 2020 05:14 pm
Howdy DM,
I havent figure this one out yet - if you could give me some advice.
If I dont call bbs.logon(), then I get an error after bbs.login()
5/26 17:00:33 term Node 1 <Test> - EXIT:
5/26 17:00:33 term Node 1 <Test> !ERROR 0 (Success) in answer.cpp line 488 (answer) checking "User not logged on" access=0
In my login.js, if I dont call bbs.logon() before exiting, I get the above error and it terminates the session.
It seems Error 0 (Success) is not an error?
And to validate, if I create a logon.js with only:
// ANSItex Logon Shell
console.print('LOGON...');
I dont get the error...
Must you call a logon.js via bbs.logon()?
5/26 17:00:33 term Node 1 <Test> - EXIT:
5/26 17:00:33 term Node 1 <Test> !ERROR 0 (Success) in answer.cpp
line 488 (answer) checking "User not logged on" access=0
No. I'm guessing your call to bbs.logon() is failing before it can set SS_USERON, so your log output should give the details why.
log(LOG_DEBUG,' - User:'+JSON.stringify(bbs.user));
(Oh, and bbs.user is undefined until I exit.)
Re: Some help with login/logon and shell javascript
By: Digital Man to alterego on Tue May 26 2020 04:28 pm
5/26 17:00:33 term Node 1 <Test> - EXIT:
5/26 17:00:33 term Node 1 <Test> !ERROR 0 (Success) in answer.cpp al>> line 488 (answer) checking "User not logged on" access=0
No. I'm guessing your call to bbs.logon() is failing before it can set SS_USERON, so your log output should give the details why.
Not sure that I follow (and the above is the only thing in the error log):
Here is my call:
if (bbs.login(fo.frame_fields[0].fvalue,null,fo.frame_fields[1].fvalue)) {
log(LOG_DEBUG,' - User:'+JSON.stringify(bbs.user));
bbs.logon();
log(LOG_DEBUG,' - EXIT:');
exit();
}
If I comment out bbs.logon(), I get the error message.
If I call it, and it only does:
// ANSItex Logon Shell
console.print('LOGON...');
(only 2 lines)
I dont get the error message.
I also made logon.js a zero byte file, and the same result. Success if I call bbs.logon(), failure if I dont call it.
Should I be setting SS_USERON somewhere before exiting if I dont want to call logon.js?
You must call bbs.logon().
bbs.logon() does a lot more than just call your logon module. See sbbs_t::logon() in src/sbbs3/logon.cpp if you're curious.
Re: Some help with login/logon and shell javascript
By: Digital Man to alterego on Tue May 26 2020 06:31 pm
You must call bbs.logon().
bbs.logon() does a lot more than just call your logon module. See sbbs_t::logon() in src/sbbs3/logon.cpp if you're curious.
'nuff said - got it.
Thanks...