X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/703c44eeab0ff078bf6a74887fbb1c94a50f80b3..5b2d2ff2f0482c56b6e8541bab6de84a940b0a82:/script/update-spam-blocks diff --git a/script/update-spam-blocks b/script/update-spam-blocks index 903fc9b8a..8476fcb9d 100755 --- a/script/update-spam-blocks +++ b/script/update-spam-blocks @@ -12,10 +12,9 @@ addresses = User.count( ) addresses.each do |address,count| - if count > 2 + if count > 1 acl = Acl.find(:first, :conditions => { :address => address, - :netmask => "255.255.255.255" }) unless acl @@ -32,7 +31,6 @@ addresses.each do |address,count| end acls = Acl.find(:all, :conditions => { - :netmask => "255.255.255.255", :k => "no_account_creation", :v => "auto_spam_block" })