Re-request Authorization with libpurple?

michaelcbrook at msn.com michaelcbrook at msn.com
Mon Aug 10 06:07:16 EDT 2009


Hi again,

This kind of goes along with an earlier thread of mine "Sending a buddy
request in ICQ fails when using libpurple," but this time I'm having a
problem being able to see a buddy's status when adding a buddy in ICQ
using libpurple.  Here's what I've got:

I have two programs (strictly command line) written using libpurple.
Each one has a separate ICQ account logged in.  One of them sends a
buddy request to the other one, and when that account receives the buddy
request, it is accepted and the buddy is added successfully to the first
account's buddy list, but...

The problem is that the first account cannot see the buddy's status at
all, even though the buddy request was authorized and everything.

I actually have the same problem in pidgin...If I log into the first
account through pidgin instead of my program, and if I send a buddy
request to the other program, it is accepted by the program and the
buddy is added in pidgin, but the buddy shows as "Not Authorized"...

However, in pidgin, I can at least fix the problem by right-clicking on
the buddy and going to "Re-request Authorization" and THEN I'll be able
to see the buddy's status.

So my question is: How do you imitate the "Re-request Authorization"
button, which is in pidgin, in libpurple?  Since I can't really call
purple_account_add_buddy() twice in a row to send two buddy requests,
and I haven't been able to find the solution in pidgin's source code,
I'm stumped...

Any thoughts?

Thanks
-Michael





More information about the Support mailing list