X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f1316fa58e5cec92888cd83c16e4a4df0a1cdc2a..1b668ead62139d6b1b570ec14e7ae276c69cb7c0:/script/update-spam-blocks diff --git a/script/update-spam-blocks b/script/update-spam-blocks index 381ef3c1a..c21b17cff 100755 --- a/script/update-spam-blocks +++ b/script/update-spam-blocks @@ -12,18 +12,17 @@ addresses = User.count( ) addresses.each do |address,count| - if count > 2 + if count > 1 acl = Acl.find(:first, :conditions => { :address => address, }) 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