--- xmpp_user.module-old	2010-01-13 15:18:44.099745389 -0800
+++ xmpp_user.module	2010-01-13 15:18:06.994806329 -0800
@@ -229,22 +229,22 @@ function xmpp_user_delete($edit, $accoun
     $host = $account->xmpp_user['server'];
     if (variable_get('xmpp_user_provisioning_on', false) && drupal_strlen(variable_get('xmpp_user_provisioning_server', ''))) {
       $host = variable_get('xmpp_user_provisioning_server', '');
-    }
-    // Retrieve the user password from the account
-    $password = xmpp_user_get_password($account);
-    if (is_null($password)) {
-      $password = xmpp_user_decrypt_password(db_result(db_query("SELECT password FROM {xmpp_user} WHERE uid = %d", $account->uid)));
-    }
-    $conn = xmppframework_get_admin_connection();
-    if ($conn !== FALSE) {
-      $result = xmppframework_delete_account($account->name, $host, $password, $conn);
-      if ($result !== TRUE) {
-        watchdog('xmpp_user', 'Could not remove @user from the xmpp server', array('@user' => $account->name), WATCHDOG_ERROR);
+      // Retrieve the user password from the account
+      $password = xmpp_user_get_password($account);
+      if (is_null($password)) {
+        $password = xmpp_user_decrypt_password(db_result(db_query("SELECT password FROM {xmpp_user} WHERE uid = %d", $account->uid)));
+      }
+      $conn = xmppframework_get_admin_connection();
+      if ($conn !== FALSE) {
+        $result = xmppframework_delete_account($account->name, $host, $password, $conn);
+        if ($result !== TRUE) {
+          watchdog('xmpp_user', 'Could not remove @user from the xmpp server', array('@user' => $account->name), WATCHDOG_ERROR);
+        }
+        xmppframework_release_connection($conn);
+      }
+      else {
+        watchdog('xmpp_user', 'Could not create an administrative connection to the xmpp server', array(), WATCHDOG_ERROR);
       }
-      xmppframework_release_connection($conn);
-    }
-    else {
-      watchdog('xmpp_user', 'Could not create an administrative connection to the xmpp server', array(), WATCHDOG_ERROR);
     }
   }
   // removing the user from the xmpp_user user table
