From: Vsevolod Stakhov Date: Thu, 16 Jul 2015 13:03:54 +0000 (+0100) Subject: Do not use reconf for pure lua functions. X-Git-Tag: 1.0.0~355 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15b8293ffc8a64502d7faac7b54583c8441061c0;p=thirdparty%2Frspamd.git Do not use reconf for pure lua functions. --- diff --git a/conf/lua/rspamd.lua b/conf/lua/rspamd.lua index b4de3835d1..531d6b89a9 100644 --- a/conf/lua/rspamd.lua +++ b/conf/lua/rspamd.lua @@ -49,7 +49,7 @@ reconf['R_WHITE_ON_WHITE'] = string.format('(!(%s) & (%s))', r_bgcolor, r_font_c reconf['R_FLASH_REDIR_IMGSHACK'] = '/^(?:http:\\/\\/)?img\\d{1,5}\\.imageshack\\.us\\/\\S+\\.swf/U' -- Different text parts -reconf['R_PARTS_DIFFER'] = function(task) +rspamd_conf.R_PARTS_DIFFER = function(task) local distance = task:get_mempool():get_variable('parts_distance', 'int') if distance then