From 76a945bb6adeeb762265141aa68eae4c80c83656 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sun, 15 Mar 2020 08:59:39 +0000
Subject: [PATCH] Fix the user count check and use the specified sysop name as
 the "From" name in the created AreaFix netmail message.

---
 exec/init-fidonet.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exec/init-fidonet.js b/exec/init-fidonet.js
index 9323ba4e8c..55e8d2dfc8 100644
--- a/exec/init-fidonet.js
+++ b/exec/init-fidonet.js
@@ -86,7 +86,7 @@ if(!confirm("Your origin line (" +	msgs_cnf.fido_default_origin + ")")) {
 	msgs_cnf.fido_default_origin = prompt("Your origin line");
 }
 var sysop = system.operator;
-if(system.total_users) {
+if(system.stats.total_users) {
 	var u = new User(1);
 	if(u && u.name)
 		sysop = u.name;
@@ -213,7 +213,7 @@ if(confirm("Create an AreaFix request to link ALL EchoMail areas with "
 	if(!msgbase.save_msg({
 			to: "areafix",
 			to_net_addr: fidoaddr.to_str(hub),
-			from: system.operator,
+			from: sysop,
 			from_ext: 1,
 			subject: areafixpwd
 		}, /* body text: */ "%+ALL")) {
-- 
GitLab