Skip to content
Snippets Groups Projects
Commit 87df26e2 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Automatically enable "EchoList Only" areamgr mode when EchoList Keys are used

Logs a warning when doing so since this might be confusing if a sysop
specifically left this setting disabled ("Allow Users to Add Areas from Area
List" set to "Yes", the default, in echocfg) with EchoLists configured with
Required Keys.

This should automatically solve the "non-intuitive" configuration issue
reported via DOVE-net by poindexter FORTRAN (REALITY).
parent c122ddd8
Branches
Tags
No related merge requests found
...@@ -6789,6 +6789,16 @@ int main(int argc, char **argv) ...@@ -6789,6 +6789,16 @@ int main(int argc, char **argv)
} }
} }
if (!cfg.add_from_echolists_only) {
for (uint u = 0; u < cfg.listcfgs; ++u) {
if (cfg.listcfg[u].keys[0] != NULL) {
lprintf(LOG_WARNING, "One or more EchoLists have been configured with a Required Key, disabling Linked Node access to Area File");
cfg.add_from_echolists_only = true;
break;
}
}
}
char* tmpdir = FULLPATH(NULL, cfg.temp_dir, sizeof(cfg.temp_dir) - 1); char* tmpdir = FULLPATH(NULL, cfg.temp_dir, sizeof(cfg.temp_dir) - 1);
if (tmpdir != NULL) { if (tmpdir != NULL) {
SAFECOPY(cfg.temp_dir, tmpdir); SAFECOPY(cfg.temp_dir, tmpdir);
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "ini_file.h" #include "ini_file.h"
#define SBBSECHO_VERSION_MAJOR 3 #define SBBSECHO_VERSION_MAJOR 3
#define SBBSECHO_VERSION_MINOR 27 #define SBBSECHO_VERSION_MINOR 28
#define SBBSECHO_PRODUCT_CODE 0x12FF /* from http://ftsc.org/docs/ftscprod.013 */ #define SBBSECHO_PRODUCT_CODE 0x12FF /* from http://ftsc.org/docs/ftscprod.013 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment