]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix some issues
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 13 Nov 2022 20:33:37 +0000 (20:33 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 19 Nov 2022 12:44:14 +0000 (12:44 +0000)
lualib/lua_maps.lua

index 88f0b894aee33df926a5bce661a66ea4cb3416f6..21480ad638d540a5c74fe897a9d6c5da249d503b 100644 (file)
@@ -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