From 8e72df6004b786699e88036d08500bf8171ecf8f Mon Sep 17 00:00:00 2001 From: y5nw <37980625+y5nw@users.noreply.github.com> Date: Sun, 21 Jan 2024 18:47:54 +0100 Subject: [PATCH] Expand aliases at toplevel if the current expansion is at toplevel This should allow players to send mail to their own aliases --- util/normalize.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/normalize.lua b/util/normalize.lua index 9cc48e8..4d16530 100644 --- a/util/normalize.lua +++ b/util/normalize.lua @@ -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