Just curious as to why bbs.logout() seems to not be working from certain levels of my shell... For instance, I have a few sub-menus whose code is held in separate files that are load()ed by the original main shell. When I try to use the method that has the aforementioned bbs.logout(); line in it from the primary menu (contained in the main file @ the primary menu level), it logs out the shell just fine. However, when I attempt to log out from my message menu, for instance, which is in a completely different source file, it executes the main file's docIface.quitDdoc() method just fine (where bbs.logout() resides), up until the bbs.logout() invocation. At that point I receive no error messages or anyting; the shell just continues to function where it left off.
I'm not posting this with any code because I don't know how helpful it is in this case. If examples of the code would be more helpful, please let me know and I'll throw them in a message on here or, if a lot is required, into a pastebin page quick.
Thanks for any help or advice you might be able to offer in this situation. As always, it is greatly appreciated. :)
The JS bbs.logout() method just calls the C++ sbbs_t::logout() method
(in src/sbbs3/logout.cpp). There are several conditions in this method that will cause it to apparently "do nothing" (e.g. if there is not apparently "current user" logged-in). I suggest you look at this file
and maybe try to ascertain which condition for early-return might be triggered in your case: http://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/sbbs3/logout.cpp
|Location:||Riverside County, California|
|Nodes:||15 (0 / 15)|