]> source.dussan.org Git - rspamd.git/commitdiff
Fixing unused variable from CI #3588 2359/head
authorIbirisol Fontes <ibirisol@pop-ba.rnp.br>
Fri, 20 Jul 2018 12:01:04 +0000 (09:01 -0300)
committerIbirisol Fontes <ibirisol@pop-ba.rnp.br>
Fri, 20 Jul 2018 12:01:04 +0000 (09:01 -0300)
src/plugins/lua/phishing.lua

index 22347b6c30642ac8462b420ba4214227883263cb..a34ad55b20e93240dfa3ffa2aee25a303d0f4b2d 100644 (file)
@@ -325,7 +325,7 @@ local function generic_service_plain_cb(string)
 
   generic_service_data = new_data
   rspamd_logger.infox(generic_service_hash, "parsed %s elements from %s feed",
-    nelts, opts['generic_service_name'])
+    nelts, generic_service_name)
   pool:destroy()
 end
 
@@ -443,6 +443,9 @@ if opts then
     if opts['generic_service_url'] then
       generic_service_map = opts['generic_service_url']
     end
+    if opts['generic_service_name'] then
+      generic_service_name = opts['generic_service_name']
+    end
 
     if opts['generic_service_enabled'] then
       generic_service_hash = rspamd_config:add_map({