Page 1 of 1

Problem with BuddyListUpdate - buddy argument not updated

Posted: 23 Nov 2009, 17:08
by Molix
Hello,

I am using buddy variables, and when my OnBuddyListUpdate delegate is called, the "buddy" parameter does not contain the information in the message it just received.

e.g. when receiving this:

Code: Select all

[SFS DEBUG] [ RECEIVED ]: <msg t='sys'><body action='bUpd' r='-1'><b s='1' i='0'><n><![CDATA[XXXX XXXXXXX]]></n><vs><v n='rm'><![CDATA[Big Tree Forest]]></v></vs></b></body></msg>, (len: 153)

this is called:

Code: Select all

public void OnBuddyListUpdate( Buddy buddy )
    {
        Debug.Log( "OnBuddyListUpdate: " );
        foreach( string v in buddy.GetVariables().Keys )
        {
            Debug.Log( "\t" + v + " --- " + buddy.GetVariable( v ) );
        }

        SendMessage( "BuddyListUpdate", buddy );
    }

and the previous value of the variable 'rm' is printed out.

Am I using the API incorrectly? I assumed the buddy parameter would contain the updated buddy, not the old one. Do I need to get it from somewhere else?

Thanks in advance.

Posted: 23 Nov 2009, 17:13
by Molix
Well, look at that. As I was typing this, a new version came out. I'll try out 1.2.4 and report back if that fixes it!

Posted: 23 Nov 2009, 17:23
by Molix
I dropped in the 1.2.4 DLL and it works like a charm.

Of course you realize that now I will expect all my issues to have patches available simultaneous with the bug report.

;)

Thanks!

Posted: 23 Nov 2009, 17:41
by ThomasLund
Happy to set the bar impossibly high :-D