X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/48d450060b3b5c19bb1fa8e85341d76177de26d2..48ad9eff45f04b905faa62058ef91d585096ce89:/script/update-spam-blocks diff --git a/script/update-spam-blocks b/script/update-spam-blocks index eaf7d9dc3..3cb9dcedd 100755 --- a/script/update-spam-blocks +++ b/script/update-spam-blocks @@ -12,17 +12,15 @@ 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 Acl.create( :address => address, - :netmask => "255.255.255.255", - :k => "no_account", + :k => "no_account_creation", :v => "auto_spam_block" ) @@ -32,7 +30,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" })