]> git.openstreetmap.org Git - rails.git/blobdiff - script/update-spam-blocks
Remove one more netmask reference
[rails.git] / script / update-spam-blocks
index 381ef3c1a335c0f9095287bef9290424f08fff22..3cb9dcedd696deedec465ef82ffbbe975380c21f 100755 (executable)
@@ -12,7 +12,7 @@ addresses = User.count(
 )
 
 addresses.each do |address,count|
-  if count > 2
+  if count > 1
     acl = Acl.find(:first, :conditions => {
       :address => address,
     })
@@ -20,7 +20,6 @@ addresses.each do |address,count|
     unless acl
       Acl.create(
         :address => address,
-        :netmask => "255.255.255.255",
         :k => "no_account_creation",
         :v => "auto_spam_block"
       )