summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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