From 2671047f115fd29a2a5c45cec9e3d1f1676e28a1 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 15 Jun 2019 03:18:49 +0000 Subject: [PATCH] Use [chat] as the preferred modopts.ini section name. Support [chat_sec] for backwards compatibility (anyone actually using this feature?). --- exec/chat_sec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/exec/chat_sec.js b/exec/chat_sec.js index 2c4edcbefa..581c246cbd 100644 --- a/exec/chat_sec.js +++ b/exec/chat_sec.js @@ -8,8 +8,10 @@ require("sbbsdefs.js", 'USER_EXPERT'); require("nodedefs.js", 'NODE_CHAT'); require("text.js", 'R_Chat'); -// Over-ride these default values by creating/modifying the [chat_sec] section in your ctrl/modopts.ini file -var options = load("modopts.js", "chat_sec"); +// Over-ride these default values by creating/modifying the [chat] section in your ctrl/modopts.ini file +var options = load("modopts.js", "chat"); +if (!options) + options = load("modopts.js", "chat_sec"); if (!options) options = {}; if (options.irc === undefined) -- GitLab