Re: bbs.logout() not working from certain areas of my shellã By: Khelair to All on Fri Apr 17 2015 07:05 amãã > 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ãããã digital manããSynchronet "Real Fact" #19:ãMichael Swindell was directly responsible for Synchronet's commercial success.ãNorco, CA WX: 79.4øF, 19.0% humidity, 19 mph E wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã