Subj : String for node
To   : DesotoFireflite
From : Digital Man
Date : Mon Dec 14 2020 09:09 pm

 Re: String for node
 By: DesotoFireflite to Digital Man on Mon Dec 14 2020 10:12 am

>   Re: String for node
>   By: Digital Man to DesotoFireflite on Sun Dec 13 2020 01:51 pm
>
>  DM> "system" is not an array, so that syntax ("system[]") isn't going to
>  DM> work. Additionally, a user does not have a "node number" property. A
>  DM> user can be on multiple nodes and any node can serve any user, so the
>  DM> association doesn't really make any sense. Are you looking for the last
>  DM> node number that a user used or a node that is currently in-use or
>  DM> what? --
>  DM> digital man
>
> Actually, I'm looking for the node number this particular person is on at
> the time this .js is run. It's a last callers bulletin.

So bbs.node_num will contain the *current* node number when the script is run. If you want to display the node number that a user used when they were last on, I suggest looking at logonlist.js and logonlist_lib.js.

>  DM> The current node number is available in JS via bbs.node_num.
>  DM> See synchro.net/docs/jsobjs.html for the reference.
>
> I think I tried that, but I'll try it again. I should have written down the
> things I've tried.

Unless you're writing the node number to a file for later retrieval/display, that's probably not what you're looking for. The current node number (and a lot of other information) is already being written to data/logon.jsonl, so probably best to just read/use that data (using the .js mods I pointed to you above).
--
                                           digital man

Synchronet/BBS Terminology Definition #70:
SMTP = Simple Message Transfer Protocol
Norco, CA WX: 55.5�F, 38.0% humidity, 1 mph S wind, 0.02 inches rain/24hrs

---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net