aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-11-13 20:33:37 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-11-19 12:44:14 +0000
commit4623a10e17a3a838fd174751a5d998746bd16700 (patch)
tree9c7ecb85120af3bfda819344e8b093b698a4eb4e /lualib
parentb7fed9744e3008f6a1387c6d56325c31908e1768 (diff)
downloadrspamd-4623a10e17a3a838fd174751a5d998746bd16700.tar.gz
rspamd-4623a10e17a3a838fd174751a5d998746bd16700.zip
[Minor] Fix some issues
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_maps.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_maps.lua b/lualib/lua_maps.lua
index 88f0b894a..21480ad63 100644
--- a/lualib/lua_maps.lua
+++ b/lualib/lua_maps.lua
@@ -202,9 +202,9 @@ local function rspamd_map_add_from_ucl(opt, mtype, description, callback)
if t.__data then
local cb = key_callback or callback
if t.__external then
- if cb or not task then
+ if not cb or not task then
local caller = debug.getinfo(2) or {}
- rspamd_logger.errx(rspamd_config, "requested external map key without callback; caller: %s:%s",
+ rspamd_logger.errx(rspamd_config, "requested external map key without callback or task; caller: %s:%s",
caller.short_src, caller.currentline)
return nil
end