Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Fri Dec 12, 2008 7:26 pm   

Problem with #close
 
Code:

<alias name="quit" id="200">
  <value>#SENDRAW quit
#DISCONNECT
#CLOSE @session</value>
</alias>


I wanted the window to close whenever I typed quit to the MUD since the disconnect isn't instantaneous from the MUD upon exit which means I still have to disconnect and close the window manually. It worked perfect, except that when I went to reopen the session it opened for a brief second and then closed again, giving me a list of sessions just like when you start it up. Can anyone help me out here?
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Dec 12, 2008 8:00 pm   
 
The problem is that #CLOSE marks the window as no longer visible, which is saved in your session. #CLOSE was intended for closing child capture windows, and the capture windows remain closed when you reopen the session. It wasn't intended for closing the main session window. I'll add this to the wish-list for the future so that you cannot permanently close the main session window.
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Fri Dec 12, 2008 8:47 pm   
 
Yay, thanks. It would certainly help if the MUD simply severed the connection entirely upon quit. I noticed a MUSH I played does that, but oh well.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net