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

    From Khelair@TINFOIL to All on Friday, April 17, 2015 07:05:03
    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 to Khelair on Friday, April 17, 2015 15:53:16
    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
  • From Khelair@TINFOIL to Digital Man on Saturday, April 18, 2015 07:00:25
    Re: bbs.logout() not working from certain areas of my shell
    By: Digital Man to Khelair on Fri Apr 17 2015 15:53:16

    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

    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