diff options
author | Andrew Lewis <nerf@judo.za.org> | 2015-02-12 15:01:04 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2015-02-12 15:23:31 +0200 |
commit | 904ceb7a3022fa8a266be14a807b76b86673b4e0 (patch) | |
tree | e659f8be19d63920d09b1887c7df7b7537dc5ec4 /src | |
parent | 723ea73f9e078572881222f82755561b30250fdb (diff) | |
download | rspamd-904ceb7a3022fa8a266be14a807b76b86673b4e0.tar.gz rspamd-904ceb7a3022fa8a266be14a807b76b86673b4e0.zip |
rbl.lua: Don't ask for user unless called for by config
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/rbl.lua | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index b235b13a1..9aa0d15cf 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -63,14 +63,16 @@ local function rbl_cb (task) for k,rbl in pairs(rbls) do (function() - if not notgot['user'] and not havegot['user'] then - havegot['user'] = task:get_user() - if havegot['user'] == nil then - notgot['user'] = true - end - end - if havegot['user'] ~= nil and rbl['user'] == false then - return + if rbl['user'] == false then + if not havegot['user'] and not notgot['user'] then + havegot['user'] = task:get_user() + if havegot['user'] == nil then + notgot['user'] = true + end + end + if havegot['user'] ~= nil then + return + end end if rbl['helo'] then |