]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix typos
authorAndrew Lewis <nerf@judo.za.org>
Sun, 26 Mar 2017 16:27:18 +0000 (18:27 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Sun, 26 Mar 2017 16:27:18 +0000 (18:27 +0200)
src/plugins/lua/greylist.lua

index f1dd34953d39edfa2501e3fae42b9ab26ee3ce10..d8f3206d1ed05b560bdfc59cb2722afefb97b73c 100644 (file)
@@ -206,7 +206,7 @@ local function greylist_check(task)
         else
           task:set_pre_result('soft reject', settings['message'])
         end
-        task:set_flags('greylisted')
+        task:set_flag('greylisted')
       end
     elseif err then
       rspamd_logger.errx(task, 'got error while getting greylisting keys: %1', err)
@@ -334,7 +334,7 @@ local function greylist_set(task)
       'new record')
     if not qid then return end
     task:set_pre_result(settings['action'], settings['message'])
-    task:set_flags('greylisted')
+    task:set_flag('greylisted')
     -- Create new record
     ret,conn,upstream = rspamd_redis_make_request(task,
       redis_params, -- connect params
@@ -374,7 +374,7 @@ local function greylist_set(task)
       task:set_metric_action('default', settings['action'])
       if not qid then return end
       task:set_pre_result(settings['action'], settings['message'])
-      task:set_flags('greylisted')
+      task:set_flag('greylisted')
     else
       task:insert_result(settings['symbol'], 0.0, 'greylisted', 'passed')
     end