onBuddyListUpdate()
Availability:
SmartFoxServer Basic / Pro
Usage:
smartFox.onBuddyListUpdate(buddy <propertyList>)
Description:
The event is fired when the status of one buddy in the buddy list changes. (For example the buddy was previously offline and now is online)
Parameters:
buddy | A propertylist representing the buddy that has changed status |
id | buddy id | |
name | buddy name | |
isOnline | a boolean value. True if the buddy is currently onlie | |
variables | a propertylist with extra properties of the buddy |
Returns:
nothing
Example:
In the example we show the status of the buddy that has been updated and we cycle through all its Buddy Variables
on onBuddyListUpdate me, buddy name = buddy[#name] status = "offline" if buddy[#isOnline] then status = "online" put "Buddy " & name & " is currently " & status end
See also:
onBuddyList(), onBuddyListError(), onBuddyRoom()