aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2015-02-06 16:08:37 +0200
committerAndrew Lewis <nerf@judo.za.org>2015-02-06 16:10:58 +0200
commitb8003fa42f992edc5c5b74b23f2105a046f00b60 (patch)
treee133214627875744763ee66538a52b8a7911dfe0
parent8663bd63f49c04d122a06fbcbf5addbd5bdf155e (diff)
downloadrspamd-b8003fa42f992edc5c5b74b23f2105a046f00b60.tar.gz
rspamd-b8003fa42f992edc5c5b74b23f2105a046f00b60.zip
Amendment: nest stuff
-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