Browse Source

Do not use reconf for pure lua functions.

tags/1.0.0
Vsevolod Stakhov 9 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

reconf['R_FLASH_REDIR_IMGSHACK'] = '/^(?:http:\\/\\/)?img\\d{1,5}\\.imageshack\\.us\\/\\S+\\.swf/U' reconf['R_FLASH_REDIR_IMGSHACK'] = '/^(?:http:\\/\\/)?img\\d{1,5}\\.imageshack\\.us\\/\\S+\\.swf/U'


-- Different text parts -- 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') local distance = task:get_mempool():get_variable('parts_distance', 'int')
if distance then if distance then

Loading…
Cancel
Save