Changeset

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 3961:6fd9c9708422
children 3963:acd231e2b46f
files mod_http_upload/mod_http_upload.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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]);