Browse Source

Do not use reconf for pure lua functions.

tags/1.0.0
Vsevolod Stakhov 8 years ago
parent
commit
15b8293ffc
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      conf/lua/rspamd.lua

+ 1
- 1
conf/lua/rspamd.lua View File

@@ -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

Loading…
Cancel
Save