I've been working on some backend utilities to manage buddy lists and have seen some strange behavior.
1. For some reason, buddy lists can be destroyed - I've been unable to replicate this properly, but it appears to be due to a user trying to add more users to his list than the server limit has setup.
2. In trying to remedy #1, I tried creating a method in which I send in a string of user names to add to the users friends list just after I use the clearBuddyList command to wipe it out, like this:
Code: Select all
trace("remove method: "+zone.clearBuddyList );
zone.clearBuddyList( sfsUser.getName() );
// Break down the sList into an array
var sListA = sList.split( ">" );
for( var i = 0; i < sListA.length; i++ )
{
if ( sListA[i].length > 1 )
{
// Add a user to the friends list
trace("add method: "+zone.addBuddy );
zone.addBuddy(sfsUser.getName(), sListA[i]);
}
}
trace("remove method: "+zone.clearBuddyList ); give this result in the console:
remove method: function clearBuddyList()
{/* void clearBuddyList(java.lang.String) */}
The same thing happens with add buddy, so I'm curious as to how to resolve this. Thanks!