]> git.openstreetmap.org Git - rails.git/blobdiff - script/update-spam-blocks
Simplify
[rails.git] / script / update-spam-blocks
index 8476fcb9dd75a2e4f9a4d2866c5ed6c8fa7415bb..c21b17cff0ca0293bd3962fabc1f78a2714f6919 100755 (executable)
@@ -18,12 +18,11 @@ addresses.each do |address,count|
     })
 
     unless acl
-      Acl.create(
+      Acl.create({
         :address => address,
-        :netmask => "255.255.255.255",
         :k => "no_account_creation",
         :v => "auto_spam_block"
-      )
+      }, :without_protection => true)
 
       puts "Blocked #{address}"
     end