Diff

plugins/mod_storage_sql.lua @ 7755:19aa9b1ef9e8

mod_storage_sql: Don't say 'Unknown command' if no command was given (fixes attempt to concatenate nil)
author Kim Alvefur <zash@zash.se>
date Thu, 01 Dec 2016 10:02:01 +0100
parent 7753:c276d72d4e17
child 7756:274d0e57cc60
line wrap: on
line diff
--- 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