Index: mollom.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mollom/mollom.module,v
retrieving revision 1.2.2.186
diff -u -p -r1.2.2.186 mollom.module
--- mollom.module	29 Jan 2011 22:44:07 -0000	1.2.2.186
+++ mollom.module	7 Feb 2011 21:50:01 -0000
@@ -2693,6 +2693,23 @@ function user_mollom_form_moderation(&$f
 }
 
 /**
+ * Implements hook_user().
+ */
+function mollom_user($op, $edit, $account) {
+  if (in_array($op, array('insert', 'update')) && !empty($GLOBALS['mollom']['entity']) && $GLOBALS['mollom']['entity'] == 'user') {
+    $mollom = $GLOBALS['mollom'];
+    $data = (object) $mollom['response'];
+    $data->entity = 'user';
+    $data->id = $account->uid;
+    $data->form_id = $mollom['form_id'];
+    mollom_data_save($data);
+  }
+  if ($op == 'delete') {
+    mollom_data_delete('user', $account->uid);
+  }
+}
+
+/**
  * @} End of "name mollom_user".
  */
 
Index: tests/mollom.test
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mollom/tests/mollom.test,v
retrieving revision 1.1.2.75
diff -u -p -r1.1.2.75 mollom.test
--- tests/mollom.test	16 Dec 2010 17:42:27 -0000	1.1.2.75
+++ tests/mollom.test	7 Feb 2011 21:44:38 -0000
@@ -1915,7 +1915,9 @@ class MollomProfileFormsTestCase extends
 
     $this->postCorrectCaptcha(NULL, array(), t('Create new account'));
     $this->assertText(t('Your password and further instructions have been sent to your e-mail address.'));
-    $this->assertTrue(user_load(array('name' => $name)), t('New user was found in database.'));
+    $account = user_load(array('name' => $name));
+    $this->assertTrue($account, t('New user was found in database.'));
+    $this->assertMollomData('user', $account->uid);
   }
 }
 
