• bbs.logout() not working from certain areas of my shell

    From Khelair@VERT/TINFOIL to All on Fri Apr 17 07:05:03 2015
    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. :)ãã -D/Kãã---ãBorg Burgers: We do it our way; your way is irrelevant.ã þ Synchronet þ Tinfoil Tetrahedron BBS telnet://tinfoil.synchro.netã
  • From Digital Man@VERT to Khelair on Fri Apr 17 15:53:16 2015
    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ã
  • From Khelair@VERT/TINFOIL to Digital Man on Sat Apr 18 07:00:25 2015
    Re: bbs.logout() not working from certain areas of my shellã By: Digital Man to Khelair on Fri Apr 17 2015 15:53:16ãã DM> The JS bbs.logout() method just calls the C++ sbbs_t::logout() methodã DM> (in src/sbbs3/logout.cpp). There are several conditions in this methodã DM> that will cause it to apparently "do nothing" (e.g. if there is notã DM> apparently "current user" logged-in). I suggest you look at this fileã DM> and maybe try to ascertain which condition for early-return might beã DM> triggered in your case:ã DM> http://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/sbbs3/logout.cppãã Awesome. I have no doubt that'll point me in the right direction. Thank youãmuch, as always, for the info. :)ãã -D/Kãã---ãBorg Burgers: We do it our way; your way is irrelevant.ã þ Synchronet þ Tinfoil Tetrahedron BBS telnet://tinfoil.synchro.netã