]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Small fix for rmilter headers rework 1356/head
authorAndrew Lewis <nerf@judo.za.org>
Fri, 20 Jan 2017 15:00:38 +0000 (17:00 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Fri, 20 Jan 2017 15:01:43 +0000 (17:01 +0200)
src/plugins/lua/rmilter_headers.lua

index 86acaf9507f585f5240dbf607ff4a229ad10e7c1..4e3eee0f8eabfc901bfa226a661e5b6279956980 100644 (file)
@@ -336,7 +336,7 @@ if type(opts['custom']) == 'table' then
   end
 end
 for _, s in ipairs(opts['use']) do
-  if (opts.routines and opts.routines[s]) or custom_routines[s] then
+  if settings.routines[s] or custom_routines[s] then
     table.insert(active_routines, s)
     if (opts.routines and opts.routines[s]) then
       for k, v in pairs(opts.routines[s]) do