From 2aba8fd4c9bee51e552ac4c6a24f120d07a1baef Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 19 Dec 2019 20:04:45 +0000
Subject: [PATCH] Fix "ReferenceError: top is not defined" when the "list"
 command is used. Bug introduced in rev 1.59 by Nightfox. "jsexec sbbslist
 list" still has many other JS errors even after this fix. :-(

---
 exec/sbbslist.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exec/sbbslist.js b/exec/sbbslist.js
index d1d009aad5..764cd3ed0b 100644
--- a/exec/sbbslist.js
+++ b/exec/sbbslist.js
@@ -2552,7 +2552,7 @@ function main()
 						}
 					}
 					//list_bbs_entry(list[i], false);
-					list_bbs_entry(list[i], false, null, (i==top));
+					list_bbs_entry(list[i], false, null);
 					writeln();
 					count++;
 					if(optval["list"] && count >= optval["list"])
-- 
GitLab