Subj : Some questions
To : Drakmir
From : Digital Man
Date : Sat Sep 24 2005 11:28 pm
Re: Some questions
By: Drakmir to Digital Man on Sun Sep 25 2005 01:06 am
> > > > Can you give an example?
> > > >
> > > > > 2) When I change the values for node action and status, they don
> > > > > working correctly. An example is listed below.
> > > > >
> > > > > 3) If I was to go and change my shell in the user editor and exi
> > > > > the other shell. Users on the BBS don't have this option, but s
> > > > > have to do something special to allow the JavaScript shell to sw
> > > > > different one?
> > > >
> > > > Yes. The shell must be changed from the default configuration menu
> > > > have access to it).
> > > >
> > > > > Example of #2:
> > > > > When entering our menu system, I set the action/status to repres
> > > > > user is in the "main menu".
> > > > > They run a telnet_gate door. (TWGS)
> > > > > Those users flash quickly with "Running Tradewars 2002" and then
> > > > > "Logging In". Not sure why it goes back that far (that's 2 stat
> > > > > back).
> > > > > When they return from TWGS, their status is on Loggin In still u
> > > > > change menus (at which point my action/status code runs again an
> > > > > into "main menu")
> > > > >
> > > > > Am I missing something?
> > > > > All I'm doing is setting the current node's action/status number
> > > > > approrpriately. Is there a method I should be setting instead?
> > > >
> > > > Please post some code examples. Are you setting bbs.node_action or
> > > > system.node_list[].action or what?
> >
> > > function CommandShellUpdatePresence()
> > > {
> > > var node = system.node_list[bbs.node_num - 1];
> > > node.action = NODE_MAIN;
> > >
> > > if (node.status != NODE_QUIET)
> > > {
> > > node.status = NODE_INUSE;
> > > }
> > > }
> >
> > The correct way to set the current node's action value is by modifying
> > bbs.node_action. The internal C code in Synchronet is responsible for kee
> > the current node's status and action synchronized.
> I'll adjust that code then. But it still doesn't explain why when a
> bbs.nodesync is done (which I assume the telnet code is doing) it reverts ba
> to the last action state (not one I set). I'll look into it a bit more.
Let me explain it again: you didn't set bbs.node_action. The internal code in
Synchronet automatically synchronizes the value of bbs.node_action with the
node list (over-riding whatever value was already there).
digital man
Snapple "Real Fact" #173:
Chinese is the most spoken language in the world.
---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net