32 lines
841 B
Markdown
32 lines
841 B
Markdown
# MercanRey6.js — findKnownConnections() (satır 136)
|
||
|
||
[← MercanRey6.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function findKnownConnections(profile, db, server)
|
||
{
|
||
var result = [];
|
||
var contacts = profile.contacts || [];
|
||
var length = listSize(contacts);
|
||
|
||
for (var i = 0; i < length; i++)
|
||
{
|
||
var contact = splitContact(listGet(contacts, i));
|
||
|
||
if (contact.uuid !== "" && db.people[contact.uuid] != null)
|
||
{
|
||
var online = server.getEntity(contact.uuid) != null;
|
||
|
||
result.push({
|
||
name: contact.name,
|
||
uuid: contact.uuid,
|
||
online: online,
|
||
className: String(db.people[contact.uuid].className || "bilinmeyen")
|
||
});
|
||
}
|
||
}
|
||
|
||
return result;
|
||
}
|
||
```
|