Expand aliases at toplevel if the current expansion is at toplevel

This should allow players to send mail to their own aliases
This commit is contained in:
y5nw 2024-01-21 18:47:54 +01:00
parent 9c2be9d689
commit 8e72df6004

View file

@ -13,7 +13,7 @@ local function recursive_expand_recipient_names(sender, list, is_toplevel, recip
local vtp = type(value)
if succ then
if vtp == "string" then
recursive_expand_recipient_names(sender, {value}, false, recipients, undeliverable)
recursive_expand_recipient_names(sender, {value}, is_toplevel, recipients, undeliverable)
elseif vtp == "table" then
recursive_expand_recipient_names(sender, value, false, recipients, undeliverable)
elseif vtp == "function" then