Disallow sending to empty recipient

This commit is contained in:
y5nw 2024-03-22 20:34:32 +01:00
parent fcef1b9e1c
commit e9d60b0013

View file

@ -51,6 +51,8 @@ function mail.send(m)
table.insert(undeliverable_reason, reason)
end
return false, table.concat(undeliverable_reason, "\n")
elseif not next(recipients) then
return false, S("You did not specify any valid recipient.")
end
local extra = {}