]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix whitelisted_user map initialisation 952/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 14 Sep 2016 08:39:20 +0000 (10:39 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 14 Sep 2016 08:39:20 +0000 (10:39 +0200)
src/plugins/lua/ratelimit.lua

index 6731419c8a988c50c935f82a622066f9b5a099a9..1df96c2c59abc3aeb449675c70e5813c6fb79f0a 100644 (file)
@@ -509,7 +509,11 @@ if opts then
   end
 
   if opts['whitelisted_user'] then
-    whitelisted_user = rspamd_config:add_map(opts['whitelisted_user'], 'Ratelimit whitelist user map')
+    whitelisted_user = rspamd_config:add_map({
+      ['url'] = opts['whitelisted_user'],
+      ['description'] = 'Ratelimit whitelist user map',
+      ['type'] = 'set'
+    })
   end
 
   if opts['symbol'] then