mirror of https://github.com/BOINC/boinc.git
delete spammers script: fix --id_range command
This commit is contained in:
parent
512e8e2cfe
commit
3156ea56fd
|
@ -179,8 +179,11 @@ for ($i=1; $i<$argc; $i++) {
|
||||||
die ("bad args\n");
|
die ("bad args\n");
|
||||||
}
|
}
|
||||||
for ($i=$id1; $i <= $id2; $i++) {
|
for ($i=$id1; $i <= $id2; $i++) {
|
||||||
echo "deleting $i\n";
|
$user = BoincUser::lookup_id($i);
|
||||||
delete_user($i);
|
if ($user) {
|
||||||
|
echo "deleting user $i\n";
|
||||||
|
delete_user($user);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if ($argv[$i] == "--banished") {
|
} else if ($argv[$i] == "--banished") {
|
||||||
delete_banished();
|
delete_banished();
|
||||||
|
|
Loading…
Reference in New Issue