From 56ad6587ed0dd2a095c094c4d84811726c6eabc4 Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Wed, 18 Nov 2020 19:42:21 -0800 Subject: [PATCH] Fix "undefined" message displayed to W-restricted users. As reported by plt from the I, the R, and the C. Also, abort menu upon Ctrl-C. --- exec/automsg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/automsg.js b/exec/automsg.js index a29346591c..b7d6688ed6 100644 --- a/exec/automsg.js +++ b/exec/automsg.js @@ -11,7 +11,7 @@ function automsg() { const quote_fmt=" > %.*s\r\n"; var automsg = system.data_dir + "msgs/auto.msg"; - while(bbs.online && !js.termiated) { + while(bbs.online && !js.termiated && !console.aborted) { bbs.nodesync(); console.mnemonics(bbs.text(AutoMsg)); switch(console.getkeys("RWQD",0)) { @@ -20,7 +20,7 @@ function automsg() break; case 'W': if(user.security.restrictions&UFLAG_W) { - console.print(bbs.text[R_AutoMsg]); + console.print(bbs.text(R_AutoMsg)); break; } bbs.action=NODE_AMSG; -- GitLab