libpurple buddy add issues with msn
Elliott Sales de Andrade
qulogic at pidgin.im
Fri Dec 17 20:06:20 EST 2010
On Fri, Dec 17, 2010 at 7:11 PM, Duncan Berriman <duncan at dcl.co.uk> wrote:
> 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.
Yes, you need to implement the request uiops. It will unfortunately be
a bit of a hack. We can't really change the API until 3.0.
> 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
The uiops tell the UI to ask the user a question.
> 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.
GTalk has invite requests, but no invite messages.
> Is there any simple way round this?
> Thanks for your help. Much appreciated.
> 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>
>>> 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);
>>> 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
>>> new msn account for my client to connect and the only thing it has
>>> to do is sign on (with success) and add a buddy (seemingly with success
>>> nothing happens). As I mentioned above same code with google works first
>> 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.
> Devel mailing list
> Devel at pidgin.im
Elliott aka QuLogic
More information about the Devel