Remove one more netmask reference
[rails.git] / script / update-spam-blocks
index eaf7d9dc36574b6c47471e18f73b9157a2232b08..3cb9dcedd696deedec465ef82ffbbe975380c21f 100755 (executable)
@@ -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"
 })