]> source.dussan.org Git - rspamd.git/commitdiff
Amendment: nest stuff
authorAndrew Lewis <nerf@judo.za.org>
Fri, 6 Feb 2015 14:08:37 +0000 (16:08 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Fri, 6 Feb 2015 14:10:58 +0000 (16:10 +0200)
src/plugins/lua/settings.lua

index 5b9311adfcac85627d18469c223045e6ba7e6c68..eb1cdcb3a14003d84c7a1d4c5d789250fbb7aaba 100644 (file)
@@ -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