From 904ceb7a3022fa8a266be14a807b76b86673b4e0 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Thu, 12 Feb 2015 15:01:04 +0200 Subject: [PATCH] rbl.lua: Don't ask for user unless called for by config --- src/plugins/lua/rbl.lua | 18 ++++++++++-------- 1 file 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 -- 2.39.5