From c968cf57adf7b0ac565aa4604306d59a197f7509 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Fri, 17 Oct 2003 07:57:25 +0000
Subject: [PATCH] Added support to be run as websrvr ssjs page. Now displays
 server version (if defined) in addition to Synchronet version. Removed 1
 second pause (kludge for non-thread-safe JS?).

---
 exec/nodelist-html.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/exec/nodelist-html.js b/exec/nodelist-html.js
index de91f1562d..539fd3e21f 100644
--- a/exec/nodelist-html.js
+++ b/exec/nodelist-html.js
@@ -28,7 +28,7 @@ for(i=0;i<argc;i++)
 			break;
 	}
 
-if(this.server!=undefined) {
+if(this.server && this.client) {
 
 	// Write a string to the client socket
 	function write(str)
@@ -200,10 +200,12 @@ writeln("<p><font color=silver><font size=-2>");
 writeln(format("Auto-refresh in %d seconds",refresh_rate));
 write(format("<br>Dynamically generated in %lu milliseconds "
 	  ,new Date().valueOf()-start.valueOf()));
-write("by <a href=http://www.synchro.net>" + system.version_notice + "</a>");
+write("by ");
+if(this.server)
+	write(server.version + " and ");
+write(system.version_notice.link("http://www.synchro.net"));
 writeln("<br>" + system.timestr());
 
 writeln("</body>");
 writeln("</html>");
-sleep(1000);
 /* End of nodelist-html.js */
-- 
GitLab