Mercurial > prosody-modules
diff mod_http_upload/mod_http_upload.lua @ 3962:190e74e097ee
mod_http_upload: Show help message if not at least one host/user is given
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 30 Mar 2020 19:56:09 +0200 |
parents | 6fd9c9708422 |
children | f1f796e551f1 |
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua Mon Mar 30 19:56:04 2020 +0200 +++ b/mod_http_upload/mod_http_upload.lua Mon Mar 30 19:56:09 2020 +0200 @@ -415,7 +415,7 @@ function module.command(args) datamanager = require "core.storagemanager".olddm; -- luacheck: ignore 421/user - if args[1] == "expire" then + if args[1] == "expire" and args[2] then local split = require "util.jid".prepped_split; for i = 2, #args do local user, host = split(args[i]);