aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/settings.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/settings.lua')
-rw-r--r--src/plugins/lua/settings.lua2
1 files changed, 1 insertions, 1 deletions
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