Index: invite.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/invite/invite.module,v
retrieving revision 1.10.2.60
diff -u -r1.10.2.60 invite.module
--- invite.module	27 Aug 2007 04:47:52 -0000	1.10.2.60
+++ invite.module	29 Aug 2007 02:16:56 -0000
@@ -313,6 +313,13 @@
     // Check for newly registered users
     _invite_check_messages($user->uid);
   }
+  else if ($_GET['q'] == 'user/register') {
+    if (isset($_SESSION[INVITE_SESSION]) && variable_get('user_email_verification', TRUE)) {
+      // Temporarily switch off email verification to prevent another email
+      // being sent
+      $GLOBALS['conf']['user_email_verification'] = FALSE;
+    }
+  }
 
   return $items;
 }

