aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/once_received.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-07 15:54:45 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-07 15:54:45 +0200
commit6bdb25f84bbce0cd671df19913f67a68fedc92e8 (patch)
treebdf8df2c6c0bf6bc9f603269e41e7f67be3a9efb /src/plugins/lua/once_received.lua
parent1ad9f7f9e7a91a6db211a7b9d1e5ac4c4d780f32 (diff)
downloadrspamd-6bdb25f84bbce0cd671df19913f67a68fedc92e8.tar.gz
rspamd-6bdb25f84bbce0cd671df19913f67a68fedc92e8.zip
[Minor] Remove couple more globals in Lua plugins
Diffstat (limited to 'src/plugins/lua/once_received.lua')
-rw-r--r--src/plugins/lua/once_received.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua
index 82d044c19..9b502defa 100644
--- a/src/plugins/lua/once_received.lua
+++ b/src/plugins/lua/once_received.lua
@@ -63,7 +63,7 @@ local function check_quantity_received (task)
local task_ip = task:get_ip()
- if ((not check_user and task:get_user()) or
+ if ((not check_authed and task:get_user()) or
(not check_local and task_ip and task_ip:is_local())) then
rspamd_logger.infox(task, 'Skipping once_received for authenticated user or local network')
return