From a52627d7d5237bb9fe9783e794b9c7e662758985 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 12 Apr 2001 04:07:17 +0000
Subject: [PATCH] Displays FREE for instead of 0-credits in file listing.

---
 exec/ftp-html.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/exec/ftp-html.js b/exec/ftp-html.js
index be8ae34538..1d7c290667 100644
--- a/exec/ftp-html.js
+++ b/exec/ftp-html.js
@@ -195,7 +195,10 @@ if(file.length) {
 		/* size */
 		write("<TD valign=top align=right>" + dat_font + "<font color=black>");
 		if(curdir.misc!=undefined && !(curdir.misc&DIR_FREE)) {
-			write(kbytes(file[i].credits)); 
+			if(!file[i].credits)
+				write("<font color=white><b>FREE");
+			else
+				write(kbytes(file[i].credits)); 
 			total_bytes+=file[i].credits;
 		} else {
 			write(kbytes(file[i].size)); 
-- 
GitLab