From 2ba3fbf231745da8e8144abf25a95dab239a8a0a Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 11 May 2022 20:41:09 +1000 Subject: [PATCH] Use rightpad for the node id, and change SYS ERROR message for viewdata --- load/frame-viewdata.js | 2 +- load/funcs.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/load/frame-viewdata.js b/load/frame-viewdata.js index 65b9d84..adedbae 100644 --- a/load/frame-viewdata.js +++ b/load/frame-viewdata.js @@ -61,7 +61,7 @@ function FrameViewdata() { this.settings.USER_CREATE_ERROR = ascii(27)+'AERROR CREATING USER, PLEASE TRY AGAIN *00'; this.settings.LOGIN_ERROR = ascii(27)+'AERROR LOGGING IN, PLEASE TRY AGAIN *00'; this.settings.CANCEL_MSG = ascii(27)+'BPRESS 2 TO CANCEL'; - this.settings.SYS_ERROR = ascii(27)+'ASYSTEM ERROR, TRY AGAIN OR TELL US ON *08'; + this.settings.SYS_ERROR = ascii(27)+'ASYS ERR, TRY AGAIN OR TELL US ON *08'; var blp=0; // Length of data on the bottom line diff --git a/load/funcs.js b/load/funcs.js index 12d19ec..0432a6c 100644 --- a/load/funcs.js +++ b/load/funcs.js @@ -361,7 +361,7 @@ function getNodeID() { } } - return padleft(matches[0],3,'0')+padleft(matches[1],3,'0')+padleft(bbs.node_num,2,'0'); + return padright(matches[0],3,'0')+padright(matches[1],3,'0')+padright(bbs.node_num,2,'0'); } function getPageOwners() {