From b0d3cdab29223a7494d4c3ec4234b0de417f8cdc Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 30 Jan 2019 23:33:09 +0000
Subject: [PATCH] Report an issue if the BBS is not listed in sbbsimsg.lst.

---
 exec/chksetup.js | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/exec/chksetup.js b/exec/chksetup.js
index 7b583ae34d..0715047ce0 100644
--- a/exec/chksetup.js
+++ b/exec/chksetup.js
@@ -202,6 +202,14 @@ var tests = {
 			return "SYNCDATA sub-board could not be found in message area configuration";
 	},
 	
+	check_imsg_list: function(options)
+	{
+		var lib = load({}, "sbbsimsg_lib.js");
+		var list = lib.read_sys_list(/* include_self: */true);
+		if(!lib.find_name(list, system.name))
+			return format("'%s' not listed in %s", system.name, lib.filename);
+	},
+	
 	check_sub_codes: function(options)
 	{
 		return check_codes("msg sub-board", msg_area.grp_list, 'sub_list');
@@ -252,4 +260,7 @@ for(var i in tests) {
 			break;
 	}
 }
-writeln(issues + " issues discovered");
\ No newline at end of file
+if(issues)
+	alert(issues + " issues discovered");
+else
+	writeln("No issues discovered");
-- 
GitLab