libpurple buddy add issues with msn

Duncan Berriman duncan at dcl.co.uk
Fri Dec 17 19:11:16 EST 2010


Hi Elliott,

Thanks for that but must say I am a little confused but I am new to this
(just a couple of days). I have a command line client that is working
save for this functionality. If I can get msn buddies to work then I am
pretty much finished apart from testing it to death.

As I have no gui in my client and there is no one to answer an
interactive question. I can't see a signal handler in the request api so
not sure how I can proceed, unless I can use the request uiops in some way.

I'll look at the source for the msn prpl but surely its up to the client
program/programmer to ask questions rather than the underlying protocol
handler.

I'd have thought by the program saying 'purple_account_add_buddy' it
would be implicit I wanted it to send an invite as it is with google but
I guess not.

Is there any simple way round this?

Thanks for your help. Much appreciated.
Duncan

On 17/12/2010 22:52, Elliott Sales de Andrade wrote:
>  On Fri, Dec 17, 2010 at 2:42 PM, Duncan Berriman<duncan at dcl.co.uk>   wrote:
>>  Hi,
>>
>>  I am trying to add a buddy using libpurple with msn.
>>
>>  I’m doing the following to add a new buddy….
>>
>>                  buddy = purple_buddy_new(account,"buddy at hotmail.com",NULL);
>>                  purple_blist_add_buddy(buddy, NULL, NULL, NULL);
>>                  purple_account_add_buddy(account,buddy);
>>
>>  code works fine with googletalk but on msn the buddy never receives the
>>  request and the buddy is not added to the msn buddy list.
>>
>>  Using version 2.7.7 on centos 5.5
>>
>>  Any ideas why this is not working as I’m stumped. I’ve even created a brand
>>  new msn account for my client to connect and the only thing it has attempted
>>  to do is sign on (with success) and add a buddy (seemingly with success but
>>  nothing happens). As I mentioned above same code with google works first
>>  time.
>>
>  The MSN prpl pops up a request for the invite message. You would see
>  the same thing on an Oscar account (AIM/ICQ). You need to implement
>  the request API.
>
>>  Thanks
>>  Duncan





More information about the Devel mailing list