]> source.dussan.org Git - rspamd.git/commitdiff
Obscure braindamage
authorAndrew Lewis <nerf@judo.za.org>
Sun, 17 Nov 2013 19:24:52 +0000 (21:24 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Sun, 17 Nov 2013 19:24:52 +0000 (21:24 +0200)
src/plugins/lua/multimap.lua

index afc3859222031175840b97389db7b03491ca15dd..bcbe5ff81a288d3358e051ae4595efe371166bdd 100644 (file)
@@ -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