Subj : Creating message menu To : All From : Amessyroom Date : Tue Sep 24 2024 10:41 pm I've taken code from default.js to create a message menu but there are two components, that I don't understand that are in the code: What are node_action: value? NODE_XFER was just copied from the file menu definition. What is the "eval: 'bbs.messages_cmds++' used for? const message_menu = { file: "messages", eval: 'bbs.message_cmds++', node_action: NODE_XFER, prompt: "\x01-\x01c\xfe \x01b\x01h" + gettext("Messages") + " \x01n\x01c\xfe \x01h" + time_code + " \x01n\x01c[\x01h@GN@\x01n\x01c] @GRP@\x01\\ [\x01h@SN@\x01n\x01c] @SUB@: \x01n", num_input: shell.get_sub_num, slash_num_input: shell.get_grp_num, command: { '&': { exec: 'msgscancfg.js' }, 'F': { eval: 'bbs.scan_subs(SCAN_FIND)' ,msg: '\r\n\x01c\x01h' + gettext("Find Text in Messages") + '\r\n' }, 'J': { eval: 'shell.select_msg_area()' }, 'L': { eval: 'bbs.list_msgs()' }, 'M': { eval: 'bbs.scan_subs(SCAN_NEW, /* all */true)' }, 'P': { eval: 'bbs.post_msg()' }, '/P': { exec: 'postpoll.js' }, 'R': { eval: 'bbs.scan_msgs()' }, 'S': { eval: 'bbs.scan_subs(SCAN_TOYOU)' ,msg: '\r\n\x01c\x01h' + gettext("Scan for Messages Posted to You") + '\r\n' }, 'U': { eval: 'bbs.scan_subs(SCAN_TOYOU, /* all */true)' }, 'V': { exec: 'scanpolls.js' }, '/V': { exec: 'scanpolls.js', args: ['all'] }, }, nav: { '\r': { }, 'Q': { eval: 'menu = main_menu' }, '>': { eval: 'shell.sub_up()' }, '}': { eval: 'shell.sub_up()' }, ')': { eval: 'shell.sub_up()' }, '+': { eval: 'shell.sub_up()' }, '=': { eval: 'shell.sub_up()' }, '<': { eval: 'shell.sub_down()' }, '{': { eval: 'shell.sub_down()' }, '(': { eval: 'shell.sub_down()' }, '-': { eval: 'shell.sub_down()' }, ']': { eval: 'shell.grp_up()' }, '[': { eval: 'shell.grp_down()' }, }, }; --- þ Synchronet þ Too Lazy BBS - toolazy.synchro.net:2323 .