_server.setBuddyBlockStatus()
Availability:
SmartFoxServer PRO 1.6.0
Usage:
_server.setBuddyBlockStatus(user, buddyName, isBlocked)
Description:
Set the isBlocked flag of a buddy in the User's buddy list.
When the isBlocked flag is set to true the buddy won't be able to send any messages to the user.
For a complete overview of the Buddy List 2.0 system introduced in version 1.6 check this document.
Properties:
| user | the owner of the buddy list | |
| buddyName | the name of the buddy to block / unblock | |
| isBlocked | the status (true == blocked) |
Returns:
nothing, it will fire and onBuddyListUpdate event on the client side.
Example:
// Blocks the buddy called "Mr.X" in the "user" buddy list _server.setBuddyBlockStatus(user, "Mr.X", true)
See also:
addBuddy(), removeBuddy()