diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-11-19 00:48:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-11-19 00:48:59 +0000 |
commit | 4a2376ca9feaadff2f91f3e39ee65a864e2ddc74 (patch) | |
tree | db63943d052ce88e989b5b4a7e8170f11d64b090 | |
parent | 38018c1347bef0ec6bff1b59ea1054eb27a012f5 (diff) | |
download | rspamd-4a2376ca9feaadff2f91f3e39ee65a864e2ddc74.tar.gz rspamd-4a2376ca9feaadff2f91f3e39ee65a864e2ddc74.zip |
Use local function in multimap.
-rw-r--r-- | src/plugins/lua/multimap.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 455d5c61d..faed356c4 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -54,7 +54,7 @@ local function multimap_rbl_cb(task, to_resolve, results, err) end end -function check_multimap(task) +local function check_multimap(task) for _,rule in pairs(rules) do if rule['type'] == 'ip' then if rule['cdb'] then @@ -321,10 +321,10 @@ if opts and type(opts) == 'table' then -- add fake symbol to check all maps inside a single callback if type(rspamd_config.get_api_version) ~= 'nil' then if rspamd_config.get_api_version() >= 4 then - rspamd_config:register_callback_symbol_priority('MULTIMAP', 1.0, -1, 'check_multimap') + rspamd_config:register_callback_symbol_priority('MULTIMAP', 1.0, -1, check_multimap) else - rspamd_config:register_callback_symbol('MULTIMAP', 1.0, 'check_multimap') + rspamd_config:register_callback_symbol('MULTIMAP', 1.0, check_multimap) end end - rspamd_config:register_symbol('MULTIMAP', 1.0, 'check_multimap') + rspamd_config:register_symbol('MULTIMAP', 1.0, check_multimap) end |