MyChat Scripts Engine: contact lists
Function to work with common and personal contact lists of users.
Common contact list
add a user to the common contact list; |
|
rebuild cache of the common tree-like contact list and send it to all clients; |
|
delete a user from the common contact list; |
|
get the identifier of a group (in which a user exists) by full path name in the common contact list; |
|
full path from a root to a group in the common contact list by the identifier; |
|
identifier of a group (in which a user exists) in the common contact list; |
|
get a user's group name in the common contact list; |
|
move a user from one group of the common contact list to another group. |
Personal contact list
create a new group in the personal contact list; |
|
add a user in the personal contact list in existing or new group; |
|
add several users to a personal contact list; |
|
completely delete the personal contact list of a user; |
|
delete a user from another person's contact list; |
|
check if a specified personal contact list is empty; |
|
check if a group with a specified name exists in a user's personal contact list; |
|
check if a user is in another person's personal contact list; |
|
send to an online user his updated contact list. |