Subj : Some help with login/logon and shell javascript To : alterego From : Digital Man Date : Tue May 26 2020 04:28 pm Re: Some help with login/logon and shell javascript By: alterego to Digital Man on Wed May 27 2020 08:26 am > 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. > > al> If I dont call bbs.logon(), then I get an error after bbs.login() > al> 5/26 17:00:33 term Node 1 - EXIT: > al> 5/26 17:00:33 term Node 1 !ERROR 0 (Success) in answer.cpp line > al> 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? It's an error in this case. Something needs to set the SS_USERON flag in sbbs_t::sys_status. This is normally done via sbbs_t::logon() (JS bbs.logon()). > 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()? 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. digital man Synchronet/BBS Terminology Definition #45: JS = JavaScript Norco, CA WX: 87.6øF, 38.0% humidity, 15 mph E wind, 0.00 inches rain/24hrs .