From: Andrew Lewis Date: Wed, 14 Sep 2016 06:56:24 +0000 (+0200) Subject: [Minor] Ratelimit: don't copy data X-Git-Tag: 1.4.0~426^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=599ead0c90720990bc6907d0448744d109341f80;p=rspamd.git [Minor] Ratelimit: don't copy data --- diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index 35b0a6cac..6731419c8 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -35,7 +35,6 @@ local rl_prefix = 'rl' local ip_score_lower_bound = 10 local ip_score_ham_multiplier = 1.1 local ip_score_spam_divisor = 1.1 -local user_data local rspamd_logger = require "rspamd_logger" local rspamd_redis = require "rspamd_redis" @@ -535,7 +534,7 @@ if opts then end if opts['custom_keywords'] then - custom_keywords, user_data = dofile(opts['custom_keywords']) + custom_keywords = dofile(opts['custom_keywords']) end if opts['user_keywords'] then