Issue with AS server side buddy management

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
daveK
Posts: 10
Joined: 20 Apr 2006, 23:32

Issue with AS server side buddy management

Post by daveK »

Hi Lapo,

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]);
			}
		}

Though here is the interesting thing, those methods don't execute anything! I discovered this based on the traces that reference the methods, they come back with the following.

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!
Post Reply