Dispatched when the status or variables of a buddy in the buddy list change.


Version:
SmartFoxServer Basic / Pro

The following example shows how to handle the online status change of a buddy.
CopyC#

SFSEvent.onBuddyListUpdate += OnBuddyListUpdate; public void OnBuddyListUpdate(Buddy buddy) { string name = buddy.GetName(); string status = (buddy.IsOnline()) ? "online" : "offline"; Debug.WriteLine("Buddy " + name + " is currently " + status); }
