From c03903f73bc452eb90fa31beb1923f76b8b07b1d Mon Sep 17 00:00:00 2001 From: Nigel Reed <nigel@nigelreed.net> Date: Fri, 1 Sep 2023 17:03:26 +0000 Subject: [PATCH] Fix timeout in mrc client and connector to avoid endless loop issue --- xtrn/mrc/mrc-client.js | 2 ++ xtrn/mrc/readme.txt | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/xtrn/mrc/mrc-client.js b/xtrn/mrc/mrc-client.js index f3cc6c2232..9a074bb43b 100644 --- a/xtrn/mrc/mrc-client.js +++ b/xtrn/mrc/mrc-client.js @@ -13,6 +13,8 @@ load('scrollbar.js'); load('inputline.js'); load(js.startup_dir + 'mrc-session.js'); +js.time_limit=0; + var input_state = 'chat'; var show_nicks = false; diff --git a/xtrn/mrc/readme.txt b/xtrn/mrc/readme.txt index 2fde9100fe..fa730f8fad 100644 --- a/xtrn/mrc/readme.txt +++ b/xtrn/mrc/readme.txt @@ -24,6 +24,7 @@ setup differs. Port=5000 Options=STATIC | LOOP Command=../xtrn/mrc/mrc-connector.js + JavaScriptTimeLimit=0 - In SCFG, add a new External Program with the following options, leaving all other options at their default values: @@ -33,6 +34,12 @@ setup differs. Start-up Directory: /sbbs/xtrn/mrc Command Line: ?mrc-client.js +- If you want to run from the chat menu instead of via a door, copy chat_sec.js to + /sbbs/mods and edit accordingly, adding the following and don't forget to add the + key to be used to the "keys" variable. + + bbs.exec("?../xtrn/mrc/mrc-client.js",null,"/sbbs/xtrn/mrc/"); + - Your services and BBS threads should automatically recycle once they are free to do so, but you may want to restart your BBS now to force these changes to take effect. -- GitLab