From 18b7a7e9b45c83df40607a6e77c03b02b46a0ebb Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Mon, 13 Jul 2015 22:20:11 +0000
Subject: [PATCH]  Fix LIST command when used with a filename argument

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

diff --git a/exec/str_cmds.js b/exec/str_cmds.js
index e91d9c7a20..1b5ae01582 100644
--- a/exec/str_cmds.js
+++ b/exec/str_cmds.js
@@ -112,7 +112,7 @@ function str_cmds(str)
 			writeln("LIST <filename>");
 			writeln("\tDisplays a file.");
 		}
-		if(str=="LIST") {
+		if(word=="LIST") {
 			if(bbs.check_syspass()) {
 				str=str.substr(4);
 				console.printfile(get_arg(str));
-- 
GitLab