Mercurial > prosody-modules
diff mod_http_upload/mod_http_upload.lua @ 3968:bf5d91769f99
Merge commit
author | tmolitor <thilo@eightysoft.de> |
---|---|
date | Sun, 05 Apr 2020 23:39:08 +0200 |
parents | 190e74e097ee |
children | f1f796e551f1 |
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua Sun Apr 05 23:37:17 2020 +0200 +++ b/mod_http_upload/mod_http_upload.lua Sun Apr 05 23:39:08 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]); @@ -427,6 +427,10 @@ end end end + else + print("prosodyctl mod_http_upload expire [host or user@host]+") + print("\tProcess upload expiry for the given list of hosts and/or users"); + return 1; end end