aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commitb4b0a1a7f20ac379d6c4fcd64e5c6331fb47620d (patch)
tree87654519d39d099a071e233b02ac78a90da09668 /plugins
parent854e22b394fd523c783e79a2a03a4dab28e7e5d6 (diff)
downloadprosody-b4b0a1a7f20ac379d6c4fcd64e5c6331fb47620d.tar.gz
prosody-b4b0a1a7f20ac379d6c4fcd64e5c6331fb47620d.zip
mod_storage_sql: Don't say 'Unknown command' if no command was given (fixes attempt to concatenate nil)
Diffstat (limited to 'plugins')
-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