Index: mollom.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mollom/mollom.admin.inc,v
retrieving revision 1.48
diff -u -p -r1.48 mollom.admin.inc
--- mollom.admin.inc	7 Nov 2010 18:55:32 -0000	1.48
+++ mollom.admin.inc	13 Dec 2010 20:31:33 -0000
@@ -743,6 +743,13 @@ function mollom_admin_settings($form, &$
     )),
   );
 
+  $form['mollom_protect_new_comment_types'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Protect comments for new content types'),
+    '#default_value' =>  variable_get('mollom_protect_new_comment_types', 0),
+    '#description' => t('Causes Mollom to automatically add text analysis for spam for the subject and body for comments on any newly created content type.'),
+  );
+
   $form['mollom_testing_mode'] = array(
     '#type' => 'checkbox',
     '#title' => t('Enable testing mode'),
Index: mollom.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mollom/mollom.module,v
retrieving revision 1.94
diff -u -p -r1.94 mollom.module
--- mollom.module	3 Nov 2010 14:52:06 -0000	1.94
+++ mollom.module	13 Dec 2010 20:31:33 -0000
@@ -2229,6 +2229,21 @@ function mollom_form_node_multiple_delet
  */
 
 /**
+ * Implements hook_node_type_insert() to auto-protect new comment types.
+ *
+ * This must run after comment_node_type_insert()
+ */
+function mollom_node_type_insert($type) {
+  if (variable_get('mollom_protect_new_comment_types', 0)) {
+    // Clear the node type cache. 
+    // @todo - core patch so we don't need this.
+    node_type_cache_reset();
+    $mollom_form = mollom_form_new("comment_node_{$type->type}_form");
+    mollom_form_save($mollom_form);
+  }
+}
+
+/**
  * Implements hook_mollom_form_list().
  */
 function comment_mollom_form_list() {
