From 78dba66e64d43af531a0bd67ac7ab46bdae884c1 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 6 Feb 2015 16:08:37 +0200 Subject: [PATCH] Amendment: nest stuff --- src/plugins/lua/settings.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua index 5b9311adf..eb1cdcb3a 100644 --- a/src/plugins/lua/settings.lua +++ b/src/plugins/lua/settings.lua @@ -131,8 +131,8 @@ local function check_settings(task) local rcpt = task:get_recipients() local uname = task:get_user() local user = {} - user[1] = {} if uname then + user[1] = {} for localpart, domainpart in string.gmatch(uname, "(.+)@(.+)") do user[1]["user"] = localpart user[1]["domain"] = domainpart -- 2.39.5