mod_storage_sql: Don't say 'Unknown command' if no command was given (fixes attempt to concatenate nil)
authorKim Alvefur <zash@zash.se>
Thu, 01 Dec 2016 10:02:01 +0100
changeset 7758 19aa9b1ef9e8
parent 7757 560d2e758d4c
child 7759 274d0e57cc60
mod_storage_sql: Don't say 'Unknown command' if no command was given (fixes attempt to concatenate nil)
plugins/mod_storage_sql.lua
--- a/plugins/mod_storage_sql.lua	Thu Dec 01 06:47:03 2016 +0100
+++ b/plugins/mod_storage_sql.lua	Thu Dec 01 10:02:01 2016 +0100
@@ -504,6 +504,8 @@
 			upgrade_table(params, true);
 		end
 		print("All done!");
+	elseif command then
+		print("Unknown command: "..command);
 	else
 		print("Unknown command: "..command);
 	end