Door Games Unlimited

Welcome, Guest.


Subject: bbs.logout() not working from certain areas of my shell Date: Fri Apr 17 2015 15:53:16
From: Digital Man To: Khelair

  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 ■ telnet://vert.synchro.net

Previous Message       Next Message
In Reply To: bbs.logout() not working from certain areas of my shell (Khelair)
Replies: Re: bbs.logout() not working from certain areas of my shell (Khelair)