From 80209db72f5915c2c761bef0e2884cdc44036925 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sun, 29 Mar 2020 08:09:27 +0000 Subject: [PATCH] Use the new system.get_node() method of reading node dab records. --- exec/privatemsg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/privatemsg.js b/exec/privatemsg.js index 2661007b62..37c55a5c67 100644 --- a/exec/privatemsg.js +++ b/exec/privatemsg.js @@ -79,7 +79,7 @@ while(bbs.online && !(console.aborted)) { for(var n = 0; n < system.node_list.length; n++) { if(n == bbs.node_num - 1) continue; - var node = system.node_list[n]; + var node = system.get_node(n + 1); if(node.status != NODE_INUSE) continue; if(node.misc & NODE_POFF) @@ -112,7 +112,7 @@ while(bbs.online && !(console.aborted)) { users[n + w] = web_user.usernum; } console.mnemonics(bbs.text(NodeToPrivateChat)); - var str = console.getstr(to_list[0], LEN_ALIAS, K_LINE|K_EDIT, to_list.slice(1)); + var str = console.getstr(to_list[0], LEN_ALIAS, K_LINE|K_EDIT|K_AUTODEL, to_list.slice(1)); if(!str || console.aborted) { console.aborted = false; break; -- GitLab