mod_http_upload: Show help message if not at least one host/user is given
authorKim Alvefur <zash@zash.se>
Mon, 30 Mar 2020 19:56:09 +0200
changeset 3966 190e74e097ee
parent 3965 6fd9c9708422
child 3967 acd231e2b46f
mod_http_upload: Show help message if not at least one host/user is given
mod_http_upload/mod_http_upload.lua
--- 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]);