From 3156ea56fd2e3416fbd58bf2d860c84957aeff38 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 23 Jul 2014 09:51:02 -0700 Subject: [PATCH] delete spammers script: fix --id_range command --- html/ops/delete_spammers.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/html/ops/delete_spammers.php b/html/ops/delete_spammers.php index d504ae7a50..543e3f1c13 100755 --- a/html/ops/delete_spammers.php +++ b/html/ops/delete_spammers.php @@ -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();