Index: captcha.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/captcha/captcha.install,v
retrieving revision 1.18
diff -u -b -u -p -r1.18 captcha.install
--- captcha.install	9 Nov 2010 22:35:07 -0000	1.18
+++ captcha.install	28 Nov 2010 23:41:30 -0000
@@ -130,11 +130,14 @@ function captcha_install() {
   $t = get_t();
   // Insert some default CAPTCHA points.
   $form_ids = array(
-    'comment_node_page_form',
     'contact_site_form', 'contact_personal_form',
     'user_register_form', 'user_pass', 'user_login', 'user_login_block',
     'forum_node_form'
   );
+  // Add form_ids of all currently known node types too.
+  foreach (node_type_get_names() as $type => $name) {
+    $form_ids[] = 'comment_node_' . $type . '_form';
+  }
   foreach ($form_ids as $form_id) {
     db_insert('captcha_points')
       ->fields(array(
@@ -335,5 +338,6 @@ function captcha_update_7000() {
     ->execute();
   // TODO: the general comment_form form_id is also split
   // in comment_node_{type}_form, e.g. comment_node_page_form
+  // use function node_type_get_names
 }
 
