diff options
author | Andrew Lewis <nerf@judo.za.org> | 2013-11-17 21:24:52 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2013-11-17 21:24:52 +0200 |
commit | 63d5951cace80425f3c29ec103d85d168e6e561e (patch) | |
tree | 9152cc9fbd726294e577a8a16e5873528713eb7d /src/plugins/lua | |
parent | c7affb5d5f2928cbf02affd4de2d3b78a2995a94 (diff) | |
download | rspamd-63d5951cace80425f3c29ec103d85d168e6e561e.tar.gz rspamd-63d5951cace80425f3c29ec103d85d168e6e561e.zip |
Obscure braindamage
Diffstat (limited to 'src/plugins/lua')
-rw-r--r-- | src/plugins/lua/multimap.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index afc385922..bcbe5ff81 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -70,10 +70,9 @@ end function multimap_rbl_cb(task, to_resolve, results, err) if results then - local _,_,o4,o3,o2,o1,in_rbl = string.find(to_resolve, '(%d+)%.(%d+)%.(%d+)%.(%d+)%.(.+)') -- Get corresponding rule by rbl name for _,rule in pairs(rules) do - if string.ends(in_rbl, rule['map']) then + if string.ends(to_resolve, rule['map']) then task:insert_result(rule['symbol'], 1, rule['map']) return end |