hi guys,

for example if make a request to a buddy and the buddy will not longer exist, the request should be removed or better it should shown a message like "member does not longer exist"

greets

Lausch

Comments

dldege’s picture

There is code in there to handle this.

  else if ($type == 'delete') {
    db_query("DELETE FROM {buddylist} WHERE uid = %d OR buddy = %d", $thisuser->uid, $thisuser->uid);
    db_query("DELETE FROM {buddylist_buddy_group} WHERE uid = %d OR buddy = %d", $thisuser->uid, $thisuser->uid);
    db_query("DELETE FROM {buddylist_groups} WHERE uid = %d", $thisuser->uid);
    db_query("DELETE FROM {buddylist_pending_requests} WHERE requester_uid = %d OR requestee_uid = %d", $thisuser->uid, $thisuser->uid);
  }

if this is not being called or there is some other problem I'll need more information about what you are seeing.

Thanks.

awong’s picture

yup, the code show above does the job. The requests will be removed when the user get removed. Is this what you mean?