_server.removeBuddy()
Availability:
SmartFoxServer PRO 1.6.0
Usage:
_server.removeBuddy(buddyName, user)
Description:
Removes a buddy from a user's buddy list.
If mutualRemoveBuddy is activated both users will be removed to their respective buddy lists.
For a complete overview of the Buddy List 2.0 system introduced in version 1.6 check this document.
Properties:
| buddyName | the name of the buddy to remove | |
| user | the user, owner of the buddy list |
Returns:
nothing, it will fire and onBuddyList event on the client side.
Example:
// Removes a buddy called Mr.X from the "user" buddy list _server.removeBuddy(user, "Mr.X")
See also:
addBuddy()