diff options
author | Kim Alvefur <zash@zash.se> | 2016-12-01 10:02:01 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-12-01 10:02:01 +0100 |
commit | f1ce52f17d720b45d8fb6d804fa6808894829e07 (patch) | |
tree | 87654519d39d099a071e233b02ac78a90da09668 /plugins | |
parent | b07f05a3fbe82ceffe04493abf901c60af8ec315 (diff) | |
download | prosody-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')
-rw-r--r-- | plugins/mod_storage_sql.lua | 2 |
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 |