_server.setBuddyVariables()
Availability:
SmartFoxServer PRO 1.6.0
Usage:
_server.setBuddyBlockStatus(user, variables)
Description:
Set the buddy variables of the specified user.
The variables object contains all the variables to set, where the key is the name of the variable and the value represents the variable value.
Since version 1.6.0 you can set off-line buddy variables by using a "$" sign as the first character of the variable name.
For a complete overview of the Buddy List 2.0 system introduced in version 1.6 check this document.
Properties:
| user | the user, owner of the variables | |
| variables | an associative array where both keys and values are of type String |
Returns:
nothing, it will fire and onBuddyListUpdate event on the client side.
Example:
// Set some buddy variables
var variables = {}
variables.$country = "Italy" // off-line variable
variables.invisible = true // regular variable
_server.setBuddyVariables(user, variables)
See also:
addBuddy(), removeBuddy()