? buddylist_notified.patch
Index: buddylist.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/buddylist/buddylist.module,v
retrieving revision 1.68.2.13
diff -u -p -r1.68.2.13 buddylist.module
--- buddylist.module	4 Feb 2007 15:53:43 -0000	1.68.2.13
+++ buddylist.module	6 Feb 2007 13:51:08 -0000
@@ -1306,7 +1306,6 @@ function buddylist_deletebuddy($uid) {
  */
 function buddylist_deletebuddy_submit($form_id, $form_values) {
   buddylist_remove($form_values['uid']);
-  drupal_set_message(t('@name will be be notified of being removed.', array('@name' => $form_values['name'])));
   return 'user';
 };
 
@@ -1362,8 +1361,9 @@ function buddylist_remove($id) {
   $thisuser = user_load(array('uid' => $id));
   if (variable_get('buddylist_send_remove', FALSE)) {
     buddylist_mail_user('remove', $thisuser);
+    $notified = t(' and has been notified of this change');
   }
-  drupal_set_message(t('%username has been removed from your @buddylist', array('%username' => $thisuser->name) + buddylist_translation()));
+  drupal_set_message(t('%username has been removed from your @buddylist', array('%username' => $thisuser->name) + buddylist_translation()) . $notified);
 
   if (variable_get('buddylist_require_approval', 0)) {
     db_query('DELETE FROM {buddylist} WHERE uid = %d AND buddy = %d', $id, $user->uid);
