Hi,

If you have two users, the first has the right to use IM, the second hasn't.
These users are friend.

The first user should never see the second one in the IM Picker.

Comments

artscoop’s picture

Ok,
in im.module, change

  if ($online_users) {
    foreach($friends as $friend_uid) {
      if (array_key_exists($friend_uid, $online_users) && $friend_uid != $uid) {
        if (array_key_exists($friend_uid, $waiters)) {
          $num_waiting = $waiters[$friend_uid]['num_waiting'];

with

  if ($online_users) {
    foreach($friends as $friend_uid) {
      if (array_key_exists($friend_uid, $online_users) && $friend_uid != $uid && user_access('IM talk', user_load($friend_uid))) {
        if (array_key_exists($friend_uid, $waiters)) {
          $num_waiting = $waiters[$friend_uid]['num_waiting'];
artscoop’s picture

Status: Active » Needs work