X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2e43a275de10e162d605df71e3e0f16ba596ad25..48ad9eff45f04b905faa62058ef91d585096ce89:/script/update-spam-blocks diff --git a/script/update-spam-blocks b/script/update-spam-blocks index 903fc9b8a..3cb9dcedd 100755 --- a/script/update-spam-blocks +++ b/script/update-spam-blocks @@ -12,16 +12,14 @@ 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_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" })