Working on a technique to detect the spam-user sign-ups and code to auto-delete the new user.
I've tested a little and this seems to work, but wanted to know if there is something more I should do during the delete process.
Here is the code I'm using in hook:register_addmember_complete
PHP Code:
if ($is_spam_user)
{
process_logout();
$userdm =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdm->set_existing($vbulletin->userinfo);
$userdm->delete();
unset($userdm);
}
I found that I needed to add the process_logout() so that if the user returned to the home-page before the session expired I was getting a DBError (query was missing a userid in where clause).
I'm wondering if there is anything more I need to do when deleting a user?
And/or maybe there is a better way??
Any thoughts/comments/suggestions/etc...welcome!
Thanks,
-Jimmy