• returning user node numbers

    From Ice@VERT to All on Thu Jun 9 18:23:40 2011
    is there a way to get a user's node number?ããexample:ãã1 - Sysop at main menu via telnetã2 - test at main menu via telnetã3 - john running ChatRoom via telnetã4 - jane running ChatRoom via telnetããjohn's info would be stored in the database under [node 3]ããso im trying to figure out how to get that number.ããvar nodetext = "node" + user.nodenumber;ããã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to Ice on Fri Jun 10 16:12:32 2011
    Re: returning user node numbersã By: Ice to All on Thu Jun 09 2011 06:23 pmãã > is there a way to get a user's node number?ã >ã > example:ã >ã > 1 - Sysop at main menu via telnetã > 2 - test at main menu via telnetã > 3 - john running ChatRoom via telnetã > 4 - jane running ChatRoom via telnetã >ã > john's info would be stored in the database under [node 3]ã >ã > so im trying to figure out how to get that number.ã >ã > var nodetext = "node" + user.nodenumber;ããMost users aren't on a node, so what this 'user' object in the above context?ãYou can get the current node (of the user for which the current JS context isãexecuting) with the bbs.node_num property. If you want to see if a current userãis online, you can look thorugh the system.node_list array and see if theãuseron property matches the user number you're interested in (seeãexec/nodelist.js for an example).ãã digital manããSynchronet "Real Fact" #68:ãYou can purchase the BBS Documentary DVD set at http://bbsdocumentary.com/order/ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã