From c64e34a8a53779cca279def3a2f5e3eb88b7c49e Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 24 Mar 2020 00:55:05 +0000
Subject: [PATCH] Include the echo Title (from an echolist), if found, in the
 echostats.ini. This makes this file more suitable for import into
 SCFG->Message Areas (something I'll work on soon), i.e. as an alternative to
 importing badareas.lst

---
 src/sbbs3/sbbsecho.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/sbbs3/sbbsecho.c b/src/sbbs3/sbbsecho.c
index 4889fd5341..04d05d9c2b 100644
--- a/src/sbbs3/sbbsecho.c
+++ b/src/sbbs3/sbbsecho.c
@@ -466,8 +466,11 @@ void fwrite_echostat_msg(FILE* fp, echostat_msg_t msg, const char* prefix)
 
 void fwrite_echostat(FILE* fp, echostat_t* stat)
 {
+	const char* desc = area_desc(stat->tag);
 	fprintf(fp, "[%s]\n"						, stat->tag);
 	fprintf(fp,	"Known = %s\n"					, stat->known ? "true" : "false");
+	if(desc != NULL)
+		fprintf(fp, "Title = %s\n"				, desc);
 	for(int type = 0; type < ECHOSTAT_MSG_TYPES; type++) {
 		char prefix[32];
 		sprintf(prefix, "First%s", echostat_msg_type[type])	, fwrite_echostat_msg(fp, stat->first[type], prefix);
-- 
GitLab