diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-24 21:07:45 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-24 21:07:45 -0500 |
commit | 73c5ac5fb7be9c9e42b39588e7f65f57f265bfe2 (patch) | |
tree | 420ebbabf993be149187898348dc1beb56c358ed | |
parent | 84d268f0d9c7efb267118e1cca54366bead0f58e (diff) |
mv block-{spammers,users}.rb
-rwxr-xr-x | block-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 |