summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-24 21:07:45 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-24 21:07:45 -0500
commit73c5ac5fb7be9c9e42b39588e7f65f57f265bfe2 (patch)
tree420ebbabf993be149187898348dc1beb56c358ed
parent84d268f0d9c7efb267118e1cca54366bead0f58e (diff)
mv block-{spammers,users}.rb
-rwxr-xr-xblock-users.rb (renamed from block-spammers.rb)8
1 files changed, 2 insertions, 6 deletions
diff --git a/block-spammers.rb b/block-users.rb
index bfd6dac..e9c2d84 100755
--- a/block-spammers.rb
+++ b/block-users.rb
@@ -12,14 +12,10 @@ mw.login(credentials['username'], credentials['password'])
file = File.open("/dev/stdin", "rb")
contents = file.read
users = contents.split("\n")
-users.each_slice(100) do |list|
-# begin
+users.each_slice(500) do |list|
mw.block(list, {
:autoblock => '',
:noemail => '',
- :reason => "Spammer (Autodetected: has made edits, but only to deleted pages)",
+ :reason => ARGV.join(' '),
})
-# rescue
-# print "Error blocking users #{list}\n"
-# end
end