delete spammers script: fix --id_range command

This commit is contained in:
David Anderson 2014-07-23 09:51:02 -07:00
parent 512e8e2cfe
commit 3156ea56fd
1 changed files with 5 additions and 2 deletions

View File

@ -179,8 +179,11 @@ for ($i=1; $i<$argc; $i++) {
die ("bad args\n");
}
for ($i=$id1; $i <= $id2; $i++) {
echo "deleting $i\n";
delete_user($i);
$user = BoincUser::lookup_id($i);
if ($user) {
echo "deleting user $i\n";
delete_user($user);
}
}
} else if ($argv[$i] == "--banished") {
delete_banished();