Index: chatroom.module =================================================================== --- chatroom.module (revision 5839) +++ chatroom.module (working copy) @@ -506,6 +506,14 @@ $archived_count = 0; $open_count = 0; foreach ($node->chatroom->chats as $chat) { + if ($chat->private) { + if (in_array($user->uid, $chat->allowed_uids)) { + $chat->title .= ' (Private)'; + } + else { + continue; + } + } if ($chat->when_archived) { $rows['archived'][$archived_count] = array( array('data' => l($chat->title, "node/$chat->nid")),