diff --git a/exec/privatemsg.js b/exec/privatemsg.js index 2661007b62ad312d9b2cb5d61fd2c28265f99970..37c55a5c67ea3360b37e7c3f957c090f16f28f4c 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;