aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-12-01 10:02:01 +0100
committerKim Alvefur <zash@zash.se>2016-12-01 10:02:01 +0100
commitf1ce52f17d720b45d8fb6d804fa6808894829e07 (patch)
tree87654519d39d099a071e233b02ac78a90da09668 /plugins/mod_storage_sql.lua
parentb07f05a3fbe82ceffe04493abf901c60af8ec315 (diff)
downloadprosody-f1ce52f17d720b45d8fb6d804fa6808894829e07.tar.gz
prosody-f1ce52f17d720b45d8fb6d804fa6808894829e07.zip
mod_storage_sql: Don't say 'Unknown command' if no command was given (fixes attempt to concatenate nil)
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-rw-r--r--plugins/mod_storage_sql.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index aef7ff8b..1872ea34 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -504,6 +504,8 @@ function module.command(arg)
upgrade_table(params, true);
end
print("All done!");
+ elseif command then
+ print("Unknown command: "..command);
else
print("Unknown command: "..command);
end